Commit 6ea1d058eb36936b5b77ffa80a346ef275477bce

Authored by Mumfrey
1 parent 9399ebbe

deprecating event in PreJoinGameListener

java/common/com/mumfrey/liteloader/PreJoinGameListener.java
... ... @@ -16,6 +16,11 @@ public interface PreJoinGameListener extends LiteMod
16 16 *
17 17 * @param netHandler Net handler
18 18 * @param joinGamePacket Join game packet
  19 + *
  20 + * @return true to cancel the event
  21 + * @deprecated this event's return code is not compatible with other events expressing the same pattern,
  22 + * it will be replaced in the next release with a method whose return value is boolean to NOT cancel
19 23 */
  24 + @Deprecated
20 25 public abstract boolean onPreJoinGame(INetHandler netHandler, S01PacketJoinGame joinGamePacket);
21 26 }
... ...