From 1e452425469e4a0cbf61fce698eb3ad89fb80a77 Mon Sep 17 00:00:00 2001 From: "luksor111@gmail.com" Date: Tue, 23 Oct 2012 18:13:37 +0000 Subject: New Block property g_BlockIsSolid[]; Fixed ladder, torches and vines placement. (Patch contributed by funmaker) git-svn-id: http://mc-server.googlecode.com/svn/trunk@1005 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Blocks/BlockRedstone.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/Blocks/BlockRedstone.h') diff --git a/source/Blocks/BlockRedstone.h b/source/Blocks/BlockRedstone.h index bb4997e2f..85c993329 100644 --- a/source/Blocks/BlockRedstone.h +++ b/source/Blocks/BlockRedstone.h @@ -27,7 +27,7 @@ public: virtual bool CanBeAt(cWorld * a_World, int a_BlockX, int a_BlockY, int a_BlockZ) override { - return a_World->GetBlock(a_BlockX, a_BlockY - 1, a_BlockZ) != E_BLOCK_AIR; + return g_BlockIsSolid[a_World->GetBlock(a_BlockX, a_BlockY - 1, a_BlockZ)]; } -- cgit v1.2.3