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
@ -93,7 +93,7 @@ public class TreeManager implements Listener {
|
|||||||
IrisObject object = worldAccess.getData().getObjectLoader().load(placement.getPlace().getRandom(RNG.r));
|
IrisObject object = worldAccess.getData().getObjectLoader().load(placement.getPlace().getRandom(RNG.r));
|
||||||
|
|
||||||
// Create object placer
|
// Create object placer
|
||||||
IObjectPlacer placer = new IObjectPlacer(){
|
IObjectPlacer placer = new IObjectPlacer() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getHighest(int x, int z) {
|
public int getHighest(int x, int z) {
|
||||||
@ -138,7 +138,13 @@ public class TreeManager implements Listener {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getFluidHeight() {
|
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
|
@Override
|
||||||
|
@ -150,7 +150,7 @@ public class IrisObjectPlacement {
|
|||||||
@Desc("The loot tables to apply to these objects")
|
@Desc("The loot tables to apply to these objects")
|
||||||
private KList<IrisObjectLoot> loot = new KList<>();
|
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)
|
@ArrayType(min = 1, type = IrisTree.class)
|
||||||
private KList<IrisTree> trees = new KList<>();
|
private KList<IrisTree> trees = new KList<>();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user