mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-30 20:11: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 final class CommandManager {
|
||||||
|
|
||||||
public static final String COMMAND_PREFIX = "/";
|
public static final String COMMAND_PREFIX = "/";
|
||||||
private static final String CONSOLE_PREFIX = "> ";
|
|
||||||
|
|
||||||
private volatile boolean running = true;
|
private volatile boolean running = true;
|
||||||
|
|
||||||
@ -233,7 +232,6 @@ public final class CommandManager {
|
|||||||
public void startConsoleThread() {
|
public void startConsoleThread() {
|
||||||
Thread consoleThread = new Thread(() -> {
|
Thread consoleThread = new Thread(() -> {
|
||||||
BufferedReader bi = new BufferedReader(new InputStreamReader(System.in));
|
BufferedReader bi = new BufferedReader(new InputStreamReader(System.in));
|
||||||
System.out.print(CONSOLE_PREFIX);
|
|
||||||
while (running) {
|
while (running) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
@ -241,8 +239,6 @@ public final class CommandManager {
|
|||||||
if (bi.ready()) {
|
if (bi.ready()) {
|
||||||
final String command = bi.readLine();
|
final String command = bi.readLine();
|
||||||
execute(consoleSender, command);
|
execute(consoleSender, command);
|
||||||
|
|
||||||
System.out.print(CONSOLE_PREFIX);
|
|
||||||
}
|
}
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
MinecraftServer.getExceptionManager().handleException(e);
|
MinecraftServer.getExceptionManager().handleException(e);
|
||||||
|
@ -30,8 +30,8 @@ public class UseEntityListener {
|
|||||||
player.callEvent(PlayerEntityInteractEvent.class, playerEntityInteractEvent);
|
player.callEvent(PlayerEntityInteractEvent.class, playerEntityInteractEvent);
|
||||||
} else {
|
} else {
|
||||||
// TODO find difference with INTERACT
|
// TODO find difference with INTERACT
|
||||||
PlayerEntityInteractEvent playerEntityInteractEvent = new PlayerEntityInteractEvent(player, entity, packet.hand);
|
//PlayerEntityInteractEvent playerEntityInteractEvent = new PlayerEntityInteractEvent(player, entity, packet.hand);
|
||||||
player.callEvent(PlayerEntityInteractEvent.class, playerEntityInteractEvent);
|
//player.callEvent(PlayerEntityInteractEvent.class, playerEntityInteractEvent);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user