summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--source/Blocks/BlockTorch.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/source/Blocks/BlockTorch.h b/source/Blocks/BlockTorch.h
index 00e0a585c..c94c4c436 100644
--- a/source/Blocks/BlockTorch.h
+++ b/source/Blocks/BlockTorch.h
@@ -1,4 +1,3 @@
-
#pragma once
#include "BlockHandler.h"
@@ -103,7 +102,8 @@ public:
virtual bool DoesAllowBlockOnTop(void) override
{
- return false;
+ return true;
+ //was false
}
@@ -114,6 +114,8 @@ public:
case E_BLOCK_GLASS:
case E_BLOCK_FENCE:
case E_BLOCK_NETHER_BRICK_FENCE:
+ case E_BLOCK_PISTON:
+ case E_BLOCK_WORKBENCH:
{
return (a_Direction == 0x1); // allow only direction "standing on floor"
}
@@ -130,7 +132,7 @@ public:
{
// TODO: If placing a torch from below, check all 4 XZ neighbors, place it on that neighbor instead
// How to propagate that change up?
- // Simon: The easiest way is to calculate the position two times, shouldn´t cost much cpu power :)
+ // Simon: The easiest way is to calculate the position two times, shouldn�t cost much cpu power :)
if (a_BlockFace == BLOCK_FACE_BOTTOM)
{