backbone for client API commands with test
This commit is contained in:
1 parent
7f98564122
commit
fff3ccf3f6
4 files changed
+128
No files matched your search
@@ -14,6 +14,11 @@ public class ClientPlayerEntity_clientCommandMixin
|
||||
@Inject(method = "sendChatMessage", at = @At("HEAD"))
|
||||
private void inspectMessage(String string, CallbackInfo ci)
|
||||
{
|
||||
if (string.startsWith("/call"))
|
||||
{
|
||||
String command = string.substring(6);
|
||||
CarpetClient.sendClientCommand(command);
|
||||
}
|
||||
if (CarpetServer.minecraft_server == null && !CarpetClient.isCarpet())
|
||||
{
|
||||
ClientPlayerEntity playerSource = (ClientPlayerEntity)(Object) this;
|
||||
|
||||
Reference in new issue
Block a user