use of meteordevelopment.meteorclient.mixin.SignEditScreenAccessor in project meteor-client by MeteorDevelopment.
the class AutoSign method onOpenScreen.
@EventHandler
private void onOpenScreen(OpenScreenEvent event) {
if (!(event.screen instanceof SignEditScreen) || text == null)
return;
SignBlockEntity sign = ((SignEditScreenAccessor) event.screen).getSign();
mc.player.networkHandler.sendPacket(new UpdateSignC2SPacket(sign.getPos(), text[0], text[1], text[2], text[3]));
event.cancel();
}
Aggregations