[1.7.10] Fix event handler visibility

This commit is contained in:
Jonas Herzig
2019-06-14 14:04:52 +02:00
parent 898e29d7a1
commit 047f216f73
2 changed files with 11 additions and 1 deletions

View File

@@ -308,6 +308,11 @@ public class FullReplaySender extends ChannelDuplexHandler implements ReplaySend
} }
} }
//#if MC>=10800
private
//#else
//$$ public // All event handlers need to be public in 1.7.10
//#endif
class EventHandler extends EventRegistrations { class EventHandler extends EventRegistrations {
//#if MC>=11400 //#if MC>=11400
{ on(PreTickCallback.EVENT, this::onWorldTick); } { on(PreTickCallback.EVENT, this::onWorldTick); }

View File

@@ -170,7 +170,12 @@ public class GuiReplayOverlay extends AbstractGuiOverlay<GuiReplayOverlay> {
return this; return this;
} }
private class EventHandler extends EventRegistrations { //#if MC>=10800
private
//#else
//$$ public // All event handlers need to be public in 1.7.10
//#endif
class EventHandler extends EventRegistrations {
//#if MC>=11300 //#if MC>=11300
{ on(KeyBindingEventCallback.EVENT, this::onKeyBindingEvent); } { on(KeyBindingEventCallback.EVENT, this::onKeyBindingEvent); }
private void onKeyBindingEvent() { private void onKeyBindingEvent() {