Fix network code. Encapsulated API.

This commit is contained in:
Glease committed 2021-05-29 19:05:50 +08:00
1 parent 671da2dc1a
commit 8975c149c0
9 files changed
+210 -83

No files matched your search

@@ -54,6 +54,11 @@ public class ClientProxy extends CommonProxy {
}
}
@Override
public EntityPlayer getCurrentPlayer() {
return Minecraft.getMinecraft().thePlayer;
}
@Override
public boolean isCurrentPlayer(EntityPlayer player) {
return player == Minecraft.getMinecraft().thePlayer;