mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-17 19:05:16 +00:00
The Petal Apothecary now fills up with rain like vanilla Cauldrons do.
This commit is contained in:
1 parent
ed07a4ced8
commit
525fbc4683
1 file changed
+13
@@ -162,6 +162,19 @@ public class BlockAltar extends BlockModContainer implements ILexiconable {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void fillWithRain(World world, int x, int y, int z) {
|
||||
if(world.rand.nextInt(20) == 1) {
|
||||
TileEntity tile = world.getTileEntity(x, y, z);
|
||||
if(tile instanceof TileAltar) {
|
||||
TileAltar altar = (TileAltar) tile;
|
||||
if(!altar.hasLava && !altar.hasWater)
|
||||
altar.setWater(true);
|
||||
world.func_147453_f(x, y, z, this);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int damageDropped(int meta) {
|
||||
return meta;
|
||||
|
||||
Reference in new issue
Block a user