Fix sprites not being pickable when collision physics set to liquid. (Thanks goodlyay)

This commit is contained in:
UnknownShadow200 2016-04-08 09:48:55 +10:00
parent fb0fdce7ab
commit 8807bff0db

View File

@ -499,6 +499,7 @@ namespace ClassicalSharp {
internal bool CanPick( byte block ) { internal bool CanPick( byte block ) {
if( BlockInfo.IsAir[block] ) return false; if( BlockInfo.IsAir[block] ) return false;
if( BlockInfo.IsSprite[block] ) return true;
if( BlockInfo.Collide[block] != CollideType.SwimThrough ) return true; if( BlockInfo.Collide[block] != CollideType.SwimThrough ) return true;
return !ModifiableLiquids ? false : return !ModifiableLiquids ? false :