Autocrafting table got proper orientation. Closes #2419

This commit is contained in:
drcrazy 2021-07-02 17:02:00 +03:00
parent 729b645cd7
commit 15b354fd65
2 changed files with 4 additions and 10 deletions

View file

@ -37,7 +37,6 @@ import net.minecraft.screen.ScreenHandler;
import net.minecraft.sound.SoundCategory;
import net.minecraft.util.collection.DefaultedList;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.Direction;
import net.minecraft.world.World;
import org.apache.commons.lang3.tuple.Pair;
import org.jetbrains.annotations.Nullable;
@ -351,7 +350,7 @@ public class AutoCraftingTableBlockEntity extends PowerAcceptorBlockEntity
return Optional.of(getCraftingInventory());
}
// TilePowerAcceptor
// PowerAcceptorBlockEntity
@Override
public void tick(World world, BlockPos pos, BlockState state, MachineBaseBlockEntity blockEntity) {
super.tick(world, pos, state, blockEntity);
@ -432,12 +431,6 @@ public class AutoCraftingTableBlockEntity extends PowerAcceptorBlockEntity
return true;
}
// This machine doesnt have a facing
@Override
public Direction getFacingEnum() {
return Direction.NORTH;
}
// IToolDrop
@Override
public ItemStack getToolDrop(PlayerEntity playerIn) {

View file

@ -1,8 +1,9 @@
{
"parent": "minecraft:block/cube_bottom_top",
"parent": "minecraft:block/orientable",
"textures": {
"top": "techreborn:block/machines/tier1_machines/auto_crafting_table_top",
"front": "techreborn:block/machines/tier1_machines/auto_crafting_table_side",
"bottom": "techreborn:block/machines/tier1_machines/machine_bottom",
"side": "techreborn:block/machines/tier1_machines/auto_crafting_table_side"
"side": "techreborn:block/machines/tier1_machines/machine_side"
}
}