WurmServerModLauncher icon indicating copy to clipboard operation
WurmServerModLauncher copied to clipboard

getBehavioursFor function using deprecated function.

Open Tyoda opened this issue 3 years ago • 0 comments

In org.gotti.wurmunlimited.modsupport.actions.BehaviourProvider the functions

  • getBehavioursFor(Creature performer, Item object, int tilex, int tiley, boolean onSurface, boolean corner, int tile)
  • getBehavioursFor(Creature performer, int tilex, int tiley, boolean onSurface, boolean corner, int tile) are still used in spite of being deprecated.

Solution ideas: They are used

  1. In the same class. Here the functions using them should be deprecated themselves, or they should return null like the other overloads of getBehavioursFor.
  2. In the same package in ChainedBehaviourProvider. These should maybe be deprecated instead of using @SuppressWarnings("deprecation")

Tyoda avatar Jul 26 '22 14:07 Tyoda