mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 18:23:06 +00:00
Studio check for engines
This commit is contained in:
parent
ab809dabf8
commit
623bb52fd8
@ -473,4 +473,6 @@ public interface Engine extends DataProvider, Fallible, GeneratorAccess, LootPro
|
|||||||
{
|
{
|
||||||
return getWorld().getHeight();
|
return getWorld().getHeight();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
boolean isStudio();
|
||||||
}
|
}
|
||||||
|
@ -238,7 +238,7 @@ public class IrisEntity extends IrisRegistrant {
|
|||||||
inventory.addItem(i);
|
inventory.addItem(i);
|
||||||
}
|
}
|
||||||
|
|
||||||
gen.getCompound().getEngine(at.getBlockY()).scramble(inventory, rng);
|
gen.scramble(inventory, rng);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -32,10 +32,7 @@ public enum IrisEngineValueType {
|
|||||||
ENGINE_MIN_HEIGHT((f) -> Double.valueOf(f.getMinHeight())),
|
ENGINE_MIN_HEIGHT((f) -> Double.valueOf(f.getMinHeight())),
|
||||||
|
|
||||||
@Desc("Represents virtual top of the engine in the compound. If this engine is below another engine, it's max height would be at the minHeight of the next engine - 1")
|
@Desc("Represents virtual top of the engine in the compound. If this engine is below another engine, it's max height would be at the minHeight of the next engine - 1")
|
||||||
ENGINE_MAX_HEIGHT((f) -> Double.valueOf(f.getMaxHeight())),
|
ENGINE_MAX_HEIGHT((f) -> Double.valueOf(f.getWorld().maxHeight())),
|
||||||
|
|
||||||
@Desc("Represents the position of the engine in the dimensional compound. The bottom (first) dimension stasts at 0. Each new dimension added stacks on top with n+1 for the id.")
|
|
||||||
ENGINE_INDEX((f) -> Double.valueOf(f.getIndex())),
|
|
||||||
|
|
||||||
@Desc("The fluid height defined in the dimension file")
|
@Desc("The fluid height defined in the dimension file")
|
||||||
FLUID_HEIGHT((f) -> Double.valueOf(f.getComplex().getFluidHeight())),
|
FLUID_HEIGHT((f) -> Double.valueOf(f.getComplex().getFluidHeight())),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user