mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 18:23:06 +00:00
Cleanup & fix
This commit is contained in:
parent
b15b640652
commit
8f37dc8570
@ -138,7 +138,13 @@ public class TreeManager implements Listener {
|
||||
|
||||
@Override
|
||||
public int getFluidHeight() {
|
||||
return ((Engine)worldAccess.getEngineAccess(event.getLocation().getBlockY())).getDimension().getFluidHeight();
|
||||
Engine engine;
|
||||
if (worldAccess.getCompound().getSize() > 1) {
|
||||
engine = worldAccess.getCompound().getEngine(0);
|
||||
} else {
|
||||
engine = (Engine) worldAccess.getCompound().getRootDimension();
|
||||
}
|
||||
return engine.getDimension().getFluidHeight();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -150,7 +150,7 @@ public class IrisObjectPlacement {
|
||||
@Desc("The loot tables to apply to these objects")
|
||||
private KList<IrisObjectLoot> loot = new KList<>();
|
||||
|
||||
@Desc("This objects overrides these trees when they grow...")
|
||||
@Desc("This object / these objects override the following trees when they grow...")
|
||||
@ArrayType(min = 1, type = IrisTree.class)
|
||||
private KList<IrisTree> trees = new KList<>();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user