From eb7131bd126b06c348313de6ab07d5d59f7c79c0 Mon Sep 17 00:00:00 2001 From: "luksor111@gmail.com" Date: Mon, 26 Nov 2012 10:03:34 +0000 Subject: Fixed certain blocks crashing clients when mined Fixed rail duplication glitch Fixed fall damage calculation Glass no longer drops glass git-svn-id: http://mc-server.googlecode.com/svn/trunk@1068 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Defines.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/Defines.h') diff --git a/source/Defines.h b/source/Defines.h index 1844d7872..18d495a53 100644 --- a/source/Defines.h +++ b/source/Defines.h @@ -47,7 +47,7 @@ enum inline bool IsValidBlock( int a_BlockType ) //tolua_export { //tolua_export if( a_BlockType > -1 && - a_BlockType <= 126 && //items to 109 are valid for Beta1.8.1.. 1.2.5 is up to 126 + a_BlockType <= 145 && //items to 109 are valid for Beta1.8.1.. 1.2.5 is up to 126 //a_BlockType != 29 && allow pistons //a_BlockType != 33 && allow pistons a_BlockType != 34 && @@ -66,7 +66,7 @@ inline bool IsValidBlock( int a_BlockType ) //tolua_export // Changed to fit the style ;) inline bool IsValidItem( int a_ItemID ) //tolua_export { //tolua_export - if( (a_ItemID >= 256 && a_ItemID <= 388) + if( (a_ItemID >= 256 && a_ItemID <= 400) || (a_ItemID >= 2256 && a_ItemID <= 2267) ) { return true; -- cgit v1.2.3