mirror of
https://github.com/Ellpeck/PrettyPipes.git
synced 2024-12-22 15:39:22 +01:00
fixed being unable to transfer items to the crafting grid using jei
closes #209 closes #206
This commit is contained in:
parent
4597192f31
commit
74d03f8cc2
1 changed files with 6 additions and 4 deletions
|
@ -54,10 +54,12 @@ public class PacketGhostSlot implements CustomPacketPayload {
|
|||
}
|
||||
|
||||
public static void onMessage(PacketGhostSlot message, PlayPayloadContext ctx) {
|
||||
var player = ctx.player().orElseThrow();
|
||||
var tile = Utility.getBlockEntity(CraftingTerminalBlockEntity.class, player.level(), message.pos);
|
||||
if (tile != null)
|
||||
tile.setGhostItems(message.stacks);
|
||||
ctx.workHandler().execute(() -> {
|
||||
var player = ctx.player().orElseThrow();
|
||||
var tile = Utility.getBlockEntity(CraftingTerminalBlockEntity.class, player.level(), message.pos);
|
||||
if (tile != null)
|
||||
tile.setGhostItems(message.stacks);
|
||||
});
|
||||
}
|
||||
|
||||
public static class Entry {
|
||||
|
|
Loading…
Reference in a new issue