Attempt at fixing torch placement
Attempt at fixing #71 and placement of torches.
This commit is contained in:
parent
7d6bde3d93
commit
7e288850b1
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "BlockHandler.h"
|
#include "BlockHandler.h"
|
||||||
@ -103,7 +102,8 @@ public:
|
|||||||
|
|
||||||
virtual bool DoesAllowBlockOnTop(void) override
|
virtual bool DoesAllowBlockOnTop(void) override
|
||||||
{
|
{
|
||||||
return false;
|
return true;
|
||||||
|
//was false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -114,6 +114,8 @@ public:
|
|||||||
case E_BLOCK_GLASS:
|
case E_BLOCK_GLASS:
|
||||||
case E_BLOCK_FENCE:
|
case E_BLOCK_FENCE:
|
||||||
case E_BLOCK_NETHER_BRICK_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"
|
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
|
// TODO: If placing a torch from below, check all 4 XZ neighbors, place it on that neighbor instead
|
||||||
// How to propagate that change up?
|
// 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<EFBFBD>t cost much cpu power :)
|
||||||
|
|
||||||
if (a_BlockFace == BLOCK_FACE_BOTTOM)
|
if (a_BlockFace == BLOCK_FACE_BOTTOM)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user