mirror of
https://github.com/GTNewHorizons/AE2FluidCraft-Rework.git
synced 2026-11-11 15:57:55 +00:00
fix player null crash magnet (#309)
This commit is contained in:
1 parent
bfba45e796
commit
0095f69da2
1 file changed
+2
@@ -47,6 +47,7 @@ public abstract class BaseWirelessInventory extends MEMonitorHandler implements
|
||||
public BaseWirelessInventory(final ItemStack is, final int slot, IGridNode gridNode, EntityPlayer player,
|
||||
StorageChannel channel) {
|
||||
super(Objects.requireNonNull(Util.getWirelessInv(is, player, channel)));
|
||||
this.player = player;
|
||||
this.ips = (ToolWirelessTerminal) is.getItem();
|
||||
this.grid = gridNode;
|
||||
this.target = is;
|
||||
@@ -60,6 +61,7 @@ public abstract class BaseWirelessInventory extends MEMonitorHandler implements
|
||||
public BaseWirelessInventory(final ItemStack is, final int slot, IGridNode gridNode, EntityPlayer player,
|
||||
StorageChannel channel, boolean nullInventory) {
|
||||
super(new NullInventory<>());
|
||||
this.player = player;
|
||||
this.ips = (ToolWirelessTerminal) is.getItem();
|
||||
this.grid = gridNode;
|
||||
this.target = is;
|
||||
|
||||
Reference in new issue
Block a user