fix more bugs
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package net.nuggetmc.tplus.utils;
|
||||
|
||||
import net.minecraft.server.network.ServerGamePacketListenerImpl;
|
||||
import net.nuggetmc.tplus.TerminatorPlus;
|
||||
import net.nuggetmc.tplus.api.Terminator;
|
||||
import net.nuggetmc.tplus.api.agent.Agent;
|
||||
@@ -178,6 +179,17 @@ public class Debugger {
|
||||
}
|
||||
}
|
||||
|
||||
public void renderBots() {
|
||||
int rendered = 0;
|
||||
for (Terminator fetch : TerminatorPlus.getInstance().getManager().fetch()) {
|
||||
rendered++;
|
||||
Bot bot = (Bot) fetch;
|
||||
ServerGamePacketListenerImpl connection = bot.getBukkitEntity().getHandle().connection;
|
||||
fetch.renderBot(connection, true);
|
||||
}
|
||||
print("Rendered " + rendered + " bots.");
|
||||
}
|
||||
|
||||
public void lol(String name, String skinName) {
|
||||
String[] skin = MojangAPI.getSkin(skinName);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user