mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-13 19:34:09 +00:00
Fix ClassCastException when interacting with hanging signs
This commit is contained in:
1 parent
d66bc5381e
commit
88f48c6f94
1 file changed
+1
-2
@@ -11,7 +11,6 @@ import net.minecraft.util.ChatComponentTranslation;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.world.World;
|
||||
import noppes.npcs.blocks.tiles.TileBanner;
|
||||
import noppes.npcs.blocks.tiles.TileSign;
|
||||
import noppes.npcs.blocks.tiles.TileVariant;
|
||||
|
||||
@@ -37,7 +36,7 @@ public class BlockSign extends BlockRotated {
|
||||
|
||||
@Override
|
||||
public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float hitX, float hitY, float hitZ) {
|
||||
TileBanner tile = (TileBanner) world.getTileEntity(x, y, z);
|
||||
TileSign tile = (TileSign) world.getTileEntity(x, y, z);
|
||||
return tile.canEdit();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user