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:
Max Weber
2019-03-29 14:42:39 -06:00
committed by Adam
parent 4d71194b45
commit dd993224ef
8 changed files with 64 additions and 38 deletions

View File

@@ -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()