Commit 1bfcfd905071a58a5996c176a977bfc8a52a7c00
1 parent
f13fd861
correct boolean login for PreJoinGameListener
Showing
1 changed file
with
2 additions
and
2 deletions
java/client/com/mumfrey/liteloader/client/PacketEventsClient.java
| ... | ... | @@ -46,7 +46,7 @@ public class PacketEventsClient extends PacketEvents |
| 46 | 46 | private FastIterableDeque<JoinGameListener> joinGameListeners = new HandlerList<JoinGameListener>(JoinGameListener.class); |
| 47 | 47 | private FastIterableDeque<ChatListener> chatListeners = new HandlerList<ChatListener>(ChatListener.class); |
| 48 | 48 | private FastIterableDeque<ChatFilter> chatFilters = new HandlerList<ChatFilter>(ChatFilter.class, ReturnLogicOp.AND_BREAK_ON_FALSE); |
| 49 | - private FastIterableDeque<PreJoinGameListener> preJoinGameListeners = new HandlerList<PreJoinGameListener>(PreJoinGameListener.class, ReturnLogicOp.OR); | |
| 49 | + private FastIterableDeque<PreJoinGameListener> preJoinGameListeners = new HandlerList<PreJoinGameListener>(PreJoinGameListener.class, ReturnLogicOp.AND_BREAK_ON_FALSE); | |
| 50 | 50 | private FastIterableDeque<PostLoginListener> postLoginListeners = new HandlerList<PostLoginListener>(PostLoginListener.class); |
| 51 | 51 | |
| 52 | 52 | @Override |
| ... | ... | @@ -156,7 +156,7 @@ public class PacketEventsClient extends PacketEvents |
| 156 | 156 | |
| 157 | 157 | e.cancel(); |
| 158 | 158 | |
| 159 | - return this.preJoinGameListeners.all().onPreJoinGame(netHandler, packet); | |
| 159 | + return !this.preJoinGameListeners.all().onPreJoinGame(netHandler, packet); | |
| 160 | 160 | } |
| 161 | 161 | |
| 162 | 162 | /** | ... | ... |