mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-13 03:07:34 +00:00
Fix Some Types and isColorTile simpler
This commit is contained in:
1 parent
16d838d6eb
commit
bd2eb0fe16
1 file changed
+2
-17
@@ -20,7 +20,7 @@ public class TileVariant extends TileEntity {
|
||||
super.readFromNBT(compound);
|
||||
version = compound.getInteger("CNPCVersion");
|
||||
FixTileData(version, compound, this);
|
||||
variant = compound.getInteger("CNPCVersion");
|
||||
variant = compound.getInteger("CNPCVariant");
|
||||
rotation = compound.getInteger("CNPCRotation");
|
||||
}
|
||||
|
||||
@@ -83,21 +83,6 @@ public class TileVariant extends TileEntity {
|
||||
}
|
||||
|
||||
public static boolean isColorTile(TileEntity tileEntity){
|
||||
if(tileEntity instanceof TileShortLamp)
|
||||
return true;
|
||||
|
||||
if(tileEntity instanceof TileBanner)
|
||||
return true;
|
||||
|
||||
if(tileEntity instanceof TileWallBanner)
|
||||
return true;
|
||||
|
||||
if(tileEntity instanceof TileCouchWool)
|
||||
return true;
|
||||
|
||||
if(tileEntity instanceof TileTallLamp)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
return tileEntity instanceof TileColorable;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user