Merge pull request #1775 from Voxelstice/turret-compat-fix

Turret CompatExternal fix
This commit is contained in:
HbmMods 2024-11-20 15:46:19 +01:00 committed by GitHub
commit b0a90d08f7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -181,7 +181,7 @@ public class CompatExternal {
* class on the side of whoever is adding compat, allowing the compat class to be used entirely with reflection.
*/
public static void registerTurretTargetingCondition(Class clazz, BiFunction<Entity, Object, Integer> bi) {
turretTargetBlacklist.add(clazz);
turretTargetCondition.put(clazz, bi);
}
public static void setWarheadLabel(WarheadType type, String label) { type.labelCustom = label; }