Skip to content

Commit

Permalink
add this shit back
Browse files Browse the repository at this point in the history
  • Loading branch information
froyo4u committed Apr 8, 2021
1 parent 86d4089 commit ff13975
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/main/java/tk/meowmc/portalgun/client/PortalgunClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ public void onInitializeClient() {
KeyBinding clearPortals = KeyBindingHelper.registerKeyBinding(new KeyBinding("key.portalgun.clearportals", InputUtil.Type.KEYSYM, GLFW.GLFW_KEY_R, "category.portalgun"));
ClientTickEvents.END_CLIENT_TICK.register(client -> {
while (clearPortals.wasPressed()) {
McRemoteProcedureCall.tellServerToInvoke("tk.meowmc.portalgun.misc.RemoteCallables.removeOldPortal1");
McRemoteProcedureCall.tellServerToInvoke("tk.meowmc.portalgun.misc.RemoteCallables.removeOldPortal2");
McHelper.executeOnServerThread(() -> {
McRemoteProcedureCall.tellServerToInvoke("tk.meowmc.portalgun.misc.RemoteCallables.removeOldPortal1");
McRemoteProcedureCall.tellServerToInvoke("tk.meowmc.portalgun.misc.RemoteCallables.removeOldPortal2");
});
}
});

Expand All @@ -36,7 +38,9 @@ public void onInitializeClient() {

// Portalgun.logInt(Level.INFO, tickCounter);
if (delay) {
McRemoteProcedureCall.tellServerToInvoke("tk.meowmc.portalgun.misc.RemoteCallables.portal1Place");
McHelper.executeOnServerThread(() -> {
McRemoteProcedureCall.tellServerToInvoke("tk.meowmc.portalgun.misc.RemoteCallables.portal1Place");
});
}
}
});
Expand Down

0 comments on commit ff13975

Please sign in to comment.