summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockEnchantingTable.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Blocks/BlockEnchantingTable.h')
-rw-r--r--src/Blocks/BlockEnchantingTable.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Blocks/BlockEnchantingTable.h b/src/Blocks/BlockEnchantingTable.h
index c921d8f27..33d7092e3 100644
--- a/src/Blocks/BlockEnchantingTable.h
+++ b/src/Blocks/BlockEnchantingTable.h
@@ -32,7 +32,7 @@ private:
) const override
{
AString WindowName = "Enchant";
- a_WorldInterface.DoWithBlockEntityAt(a_BlockPos.x, a_BlockPos.y, a_BlockPos.z, [&WindowName](cBlockEntity & a_Entity)
+ a_WorldInterface.DoWithBlockEntityAt(a_BlockPos, [&WindowName](cBlockEntity & a_Entity)
{
if (a_Entity.GetBlockType() != E_BLOCK_ENCHANTMENT_TABLE)
{
@@ -46,7 +46,7 @@ private:
WindowName = CustomName;
}
- return true;
+ return false;
});
cWindow * Window = new cEnchantingWindow(a_BlockPos, std::move(WindowName));