Ignore INTERACT_AT packet, remove buggy console prefix

This commit is contained in:
themode 2021-01-24 15:44:18 +01:00
parent a0f5317292
commit 3e990bb716
2 changed files with 2 additions and 6 deletions

View File

@ -42,7 +42,6 @@ import java.util.function.Consumer;
public final class CommandManager {
public static final String COMMAND_PREFIX = "/";
private static final String CONSOLE_PREFIX = "> ";
private volatile boolean running = true;
@ -233,7 +232,6 @@ public final class CommandManager {
public void startConsoleThread() {
Thread consoleThread = new Thread(() -> {
BufferedReader bi = new BufferedReader(new InputStreamReader(System.in));
System.out.print(CONSOLE_PREFIX);
while (running) {
try {
@ -241,8 +239,6 @@ public final class CommandManager {
if (bi.ready()) {
final String command = bi.readLine();
execute(consoleSender, command);
System.out.print(CONSOLE_PREFIX);
}
} catch (IOException e) {
MinecraftServer.getExceptionManager().handleException(e);

View File

@ -30,8 +30,8 @@ public class UseEntityListener {
player.callEvent(PlayerEntityInteractEvent.class, playerEntityInteractEvent);
} else {
// TODO find difference with INTERACT
PlayerEntityInteractEvent playerEntityInteractEvent = new PlayerEntityInteractEvent(player, entity, packet.hand);
player.callEvent(PlayerEntityInteractEvent.class, playerEntityInteractEvent);
//PlayerEntityInteractEvent playerEntityInteractEvent = new PlayerEntityInteractEvent(player, entity, packet.hand);
//player.callEvent(PlayerEntityInteractEvent.class, playerEntityInteractEvent);
}
}