mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-29 00:16:27 +01:00
Crafter hotfix
- Fixed crash when placing a crafter between two colliding rotation sources
This commit is contained in:
parent
285cb52894
commit
20a97c6b39
1 changed files with 2 additions and 0 deletions
|
@ -245,6 +245,8 @@ public class MechanicalCrafterBlock extends HorizontalKineticBlock implements IT
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Direction getTargetDirection(BlockState state) {
|
public static Direction getTargetDirection(BlockState state) {
|
||||||
|
if (!AllBlocks.MECHANICAL_CRAFTER.has(state))
|
||||||
|
return Direction.UP;
|
||||||
Direction facing = state.get(HORIZONTAL_FACING);
|
Direction facing = state.get(HORIZONTAL_FACING);
|
||||||
Pointing point = state.get(POINTING);
|
Pointing point = state.get(POINTING);
|
||||||
Vec3d targetVec = new Vec3d(0, 1, 0);
|
Vec3d targetVec = new Vec3d(0, 1, 0);
|
||||||
|
|
Loading…
Reference in a new issue