add defaults to more switches
This commit is contained in:
parent
3011b85aee
commit
0b640199ef
@ -92,6 +92,7 @@ public final class LookBehavior extends Behavior implements Helper {
|
||||
default:
|
||||
break;
|
||||
}
|
||||
new Thread().start();
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -111,6 +112,8 @@ public final class LookBehavior extends Behavior implements Helper {
|
||||
this.target = null;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -65,8 +65,7 @@ public final class MemoryBehavior extends Behavior implements Helper {
|
||||
public void onSendPacket(PacketEvent event) {
|
||||
Packet p = event.getPacket();
|
||||
|
||||
switch (event.getState()) {
|
||||
case PRE: {
|
||||
if (event.getState() == EventState.PRE) {
|
||||
if (p instanceof CPacketPlayerTryUseItemOnBlock) {
|
||||
CPacketPlayerTryUseItemOnBlock packet = event.cast();
|
||||
|
||||
@ -85,8 +84,6 @@ public final class MemoryBehavior extends Behavior implements Helper {
|
||||
if (p instanceof CPacketCloseWindow) {
|
||||
updateInventory();
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user