mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-22 17:27:38 +00:00
Removed cast to ResettableExtent in for loop.
I have no idea why we were casting it when all objects in the loop were ResettableExtents in the first place.
This commit is contained in:
parent
c87a19da5a
commit
6bfc3ceb95
@ -48,10 +48,8 @@ public class RandomTransform extends SelectTransform {
|
||||
collection = RandomCollection.of(weights, random);
|
||||
extents = new LinkedHashSet<>(weights.keySet());
|
||||
}
|
||||
for (AbstractDelegateExtent current : extents) {
|
||||
if (current instanceof ResettableExtent) {
|
||||
((ResettableExtent) current).setExtent(extent);
|
||||
}
|
||||
for (ResettableExtent current : extents) {
|
||||
current.setExtent(extent);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user