diff --git a/src/main/java/com/solarrabbit/largeraids/versioned/nms/RaidWrapper.java b/src/main/java/com/solarrabbit/largeraids/versioned/nms/RaidWrapper.java index cac35c3..f6669e0 100644 --- a/src/main/java/com/solarrabbit/largeraids/versioned/nms/RaidWrapper.java +++ b/src/main/java/com/solarrabbit/largeraids/versioned/nms/RaidWrapper.java @@ -58,7 +58,11 @@ public int getGroupsSpawned() { @Override public void setGroupsSpawned(int groupsSpawned) { try { - FieldUtils.writeField(this.raid, "J", groupsSpawned, true); + try { + FieldUtils.writeField(this.raid, "groupsSpawned", groupsSpawned, true); + } catch (IllegalArgumentException ignore) { + FieldUtils.writeField(this.raid, "J", groupsSpawned, true); + } } catch (IllegalAccessException e) { e.printStackTrace(); }