Skip to content

Commit

Permalink
Merge pull request #25 from Dioxop/moving-sky-stone-chest
Browse files Browse the repository at this point in the history
Allow moving AE2 sky stone chest
  • Loading branch information
Dream-Master authored Jan 30, 2023
2 parents 4220efb + 4baf359 commit 800e341
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ protected enum DollyType {
}

static {
classExtensionsNames.add("appeng.tile.storage.TileSkyChest");

classExtensionsNames.add("cpw.mods.ironchest.TileEntityIronChest");

classExtensionsNames.add("buildcraft.energy.TileEngine");
Expand Down Expand Up @@ -230,6 +232,10 @@ protected boolean placeContainer(ItemStack stack, EntityPlayer player, World wor
if (TEClassName.contains("net.minecraft.tileentity.TileEntityChest"))
blockMeta = this.getBarrelOrientationOnPlacement(player).ordinal();

/* AE2 sky stone chest orientation correction */
if (TEClassName.contains("appeng.tile.storage.TileSkyChest") && nbtContainer.hasKey("orientation_forward"))
nbtContainer.setString("orientation_forward", this.getBarrelOrientationOnPlacement(player).toString());

/* Buildcraft engines orientation correction */
if (TEClassName.contains("buildcraft.energy.TileEngine") && nbtContainer.hasKey("orientation"))
nbtContainer.setInteger("orientation", 1);
Expand Down

0 comments on commit 800e341

Please sign in to comment.