mixins: Fix convex hulls being incorrectly contoured
the Models returned by getModel are already contoured if required; we do not need to do it again
This commit is contained in:
@@ -55,7 +55,6 @@ import net.runelite.rs.api.RSCombatInfo1;
|
||||
import net.runelite.rs.api.RSCombatInfo2;
|
||||
import net.runelite.rs.api.RSCombatInfoList;
|
||||
import net.runelite.rs.api.RSCombatInfoListHolder;
|
||||
import net.runelite.rs.api.RSModel;
|
||||
import net.runelite.rs.api.RSNPC;
|
||||
import net.runelite.rs.api.RSNode;
|
||||
|
||||
@@ -221,18 +220,6 @@ public abstract class RSActorMixin implements RSActor
|
||||
}
|
||||
}
|
||||
|
||||
@Inject
|
||||
@Override
|
||||
public Polygon getConvexHull()
|
||||
{
|
||||
RSModel model = getModel();
|
||||
if (model == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
return model.getConvexHull(getX(), getY(), getOrientation());
|
||||
}
|
||||
|
||||
@Inject
|
||||
@Override
|
||||
public WorldArea getWorldArea()
|
||||
|
||||
Reference in New Issue
Block a user