Fix manual crashing the game, closes #1754
This commit is contained in:
parent
02c823986a
commit
a08ee3d17a
4 changed files with 35 additions and 57 deletions
|
@ -35,13 +35,13 @@ import net.minecraft.util.Identifier;
|
|||
import net.minecraft.util.math.BlockPos;
|
||||
import reborncore.common.network.ExtendedPacketBuffer;
|
||||
import reborncore.common.network.NetworkManager;
|
||||
import techreborn.init.TRContent;
|
||||
import techreborn.items.ItemManual;
|
||||
import techreborn.blockentity.fusionReactor.FusionControlComputerBlockEntity;
|
||||
import techreborn.blockentity.machine.tier1.AutoCraftingTableBlockEntity;
|
||||
import techreborn.blockentity.machine.tier1.RollingMachineBlockEntity;
|
||||
import techreborn.blockentity.storage.AdjustableSUBlockEntity;
|
||||
import techreborn.blockentity.storage.idsu.InterdimensionalSUBlockEntity;
|
||||
import techreborn.init.TRContent;
|
||||
import techreborn.items.ItemManual;
|
||||
|
||||
import java.util.function.BiConsumer;
|
||||
|
||||
|
@ -126,8 +126,7 @@ public class ServerboundPackets {
|
|||
if (stack.getItem() == TRContent.MANUAL) {
|
||||
playerMP.inventory.removeInvStack(i);
|
||||
playerMP.inventory.insertStack(new ItemStack(Items.BOOK));
|
||||
//TODO 1.13
|
||||
//playerMP.inventory.addItemStackToInventory(OreUtil.getStackFromName("ingotRefinedIron"));
|
||||
playerMP.inventory.insertStack(TRContent.Ingots.REFINED_IRON.getStack());
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue