Studio check for engines

This commit is contained in:
Daniel Mills 2021-08-08 07:58:02 -04:00
parent ab809dabf8
commit 623bb52fd8
3 changed files with 4 additions and 5 deletions

View File

@ -473,4 +473,6 @@ public interface Engine extends DataProvider, Fallible, GeneratorAccess, LootPro
{
return getWorld().getHeight();
}
boolean isStudio();
}

View File

@ -238,7 +238,7 @@ public class IrisEntity extends IrisRegistrant {
inventory.addItem(i);
}
gen.getCompound().getEngine(at.getBlockY()).scramble(inventory, rng);
gen.scramble(inventory, rng);
}
});
}

View File

@ -32,10 +32,7 @@ public enum IrisEngineValueType {
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")
ENGINE_MAX_HEIGHT((f) -> Double.valueOf(f.getMaxHeight())),
@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())),
ENGINE_MAX_HEIGHT((f) -> Double.valueOf(f.getWorld().maxHeight())),
@Desc("The fluid height defined in the dimension file")
FLUID_HEIGHT((f) -> Double.valueOf(f.getComplex().getFluidHeight())),