fix merge mistake
This commit is contained in:
parent
74e74ddc85
commit
76f701763d
2 changed files with 0 additions and 8 deletions
|
@ -7,11 +7,7 @@ import net.minecraftforge.api.distmarker.OnlyIn;
|
|||
|
||||
public record GuiOpener(MsgOpenSpellGuiAck msg) {
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
<<<<<<< HEAD
|
||||
public void open() {
|
||||
=======
|
||||
public void openGui() {
|
||||
>>>>>>> aae172093c4a71951f424ef3c6f21c5924cb72a7
|
||||
var mc = Minecraft.getInstance();
|
||||
mc.setScreen(new GuiSpellcasting(msg.hand(), msg.patterns(), msg.components()));
|
||||
}
|
||||
|
|
|
@ -57,11 +57,7 @@ public record MsgOpenSpellGuiAck(InteractionHand hand, List<ResolvedPattern> pat
|
|||
public void handle(Supplier<NetworkEvent.Context> ctx) {
|
||||
ctx.get().enqueueWork(() -> {
|
||||
GuiOpener opener = new GuiOpener(this);
|
||||
<<<<<<< HEAD
|
||||
DistExecutor.safeRunWhenOn(Dist.CLIENT, () -> opener::open);
|
||||
=======
|
||||
DistExecutor.safeRunWhenOn(Dist.CLIENT, () -> opener::openGui);
|
||||
>>>>>>> aae172093c4a71951f424ef3c6f21c5924cb72a7
|
||||
});
|
||||
ctx.get().setPacketHandled(true);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue