mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-30 12:01:26 +01:00
Ignore INTERACT_AT packet, remove buggy console prefix
This commit is contained in:
parent
a0f5317292
commit
3e990bb716
@ -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);
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user