Added mob spawner support; added 'info' tool.
This commit is contained in:
@@ -210,6 +210,17 @@ public class Chunk {
|
||||
((TileEntityBlock)block).fromTileEntityNBT(tileEntity);
|
||||
}
|
||||
|
||||
return block;
|
||||
// Mob spawners
|
||||
} else if (id == 52) {
|
||||
MobSpawnerBlock block = new MobSpawnerBlock();
|
||||
|
||||
Map<String,Tag> tileEntity = getBlockTileEntity(pos);
|
||||
|
||||
if (tileEntity != null) {
|
||||
((TileEntityBlock)block).fromTileEntityNBT(tileEntity);
|
||||
}
|
||||
|
||||
return block;
|
||||
} else {
|
||||
return new BaseBlock(id, data);
|
||||
|
||||
Reference in New Issue
Block a user