Fixed crash when placing skull, fixes #958
This commit is contained in:
@@ -43,6 +43,7 @@
|
|||||||
- Added way to hide tasks created in an automated way in the Crafting Monitor (raoulvdberge)
|
- Added way to hide tasks created in an automated way in the Crafting Monitor (raoulvdberge)
|
||||||
- Added Grid sorting by ID (way2muchnoise)
|
- Added Grid sorting by ID (way2muchnoise)
|
||||||
- Added Solderer particles (raoulvdberge)
|
- Added Solderer particles (raoulvdberge)
|
||||||
|
- Fixed crash when placing skull (raoulvdberge)
|
||||||
|
|
||||||
### 1.3.5
|
### 1.3.5
|
||||||
- Fixed TPS lag on very large crafting tasks (way2muchnoise)
|
- Fixed TPS lag on very large crafting tasks (way2muchnoise)
|
||||||
|
|||||||
@@ -152,7 +152,7 @@ public class NetworkNodeConstructor extends NetworkNode implements IComparable,
|
|||||||
ItemStack took = network.extractItem(itemFilters.getStackInSlot(0), 1, compare, true);
|
ItemStack took = network.extractItem(itemFilters.getStackInSlot(0), 1, compare, true);
|
||||||
|
|
||||||
if (took != null) {
|
if (took != null) {
|
||||||
IBlockState state = block.getBlock().getStateForPlacement(holder.world(), front, holder.getDirection(), 0.5F, 0.5F, 0.5F, took.getMetadata(), null, EnumHand.MAIN_HAND);
|
IBlockState state = block.getBlock().getStateForPlacement(holder.world(), front, holder.getDirection(), 0.5F, 0.5F, 0.5F, took.getMetadata(), FakePlayerFactory.getMinecraft((WorldServer) holder.world()), EnumHand.MAIN_HAND);
|
||||||
|
|
||||||
if (!canPlace(front, state)) {
|
if (!canPlace(front, state)) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user