simple-tech

Minecraft: Better than Adventure! mod that adds simple blocks to automate tasks
git clone git://memoryshards.xyz/simple-tech.git
Log | Files | Refs | README | LICENSE

commit d30595bde47045b5249f19ebdaa99854351ae6f7
parent 4dd61381f40b61eef2e10da8e63a0e760e85da57
Author: Amb0s <ambos@disroot.org>
Date:   Fri, 25 Aug 2023 18:26:44 +0200

Changed to vanilla methods

Diffstat:
Msrc/main/java/turniplabs/simpletech/block/BlockAllocator.java | 3++-
Msrc/main/java/turniplabs/simpletech/block/BlockFan.java | 3++-
2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/main/java/turniplabs/simpletech/block/BlockAllocator.java b/src/main/java/turniplabs/simpletech/block/BlockAllocator.java @@ -2,6 +2,7 @@ package turniplabs.simpletech.block; import net.minecraft.client.Minecraft; import net.minecraft.core.block.Block; +import net.minecraft.core.block.BlockChest; import net.minecraft.core.block.BlockTileEntity; import net.minecraft.core.block.entity.TileEntity; import net.minecraft.core.block.entity.TileEntityChest; @@ -115,7 +116,7 @@ public class BlockAllocator extends BlockTileEntity { @Override public int getBlockTextureFromSideAndMetadata(Side side, int meta) { - int direction = SimpleTech.getDirectionFromMetadata(meta); + int direction = BlockChest.getDirectionFromMeta(meta).ordinal(); if (direction > 5) { return texCoordToIndex(this.top[0], this.top[1]); diff --git a/src/main/java/turniplabs/simpletech/block/BlockFan.java b/src/main/java/turniplabs/simpletech/block/BlockFan.java @@ -1,5 +1,6 @@ package turniplabs.simpletech.block; +import net.minecraft.core.block.BlockChest; import net.minecraft.core.block.BlockTileEntity; import net.minecraft.core.block.entity.TileEntity; import net.minecraft.core.block.material.Material; @@ -44,7 +45,7 @@ public class BlockFan extends BlockTileEntity { @Override public int getBlockTextureFromSideAndMetadata(Side side, int j) { - int direction = SimpleTech.getDirectionFromMetadata(j); + int direction = BlockChest.getDirectionFromMeta(j).ordinal(); if (direction > Direction.EAST.getId()) { // Defaults to top/bottom texture. return texCoordToIndex(this.topBottom[0], this.topBottom[1]);