3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-11-20 01:40:06 +01: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.
Dieser Commit ist enthalten in:
MattBDev 2021-06-03 17:59:51 -04:00
Ursprung c87a19da5a
Commit 6bfc3ceb95

Datei anzeigen

@ -48,10 +48,8 @@ public class RandomTransform extends SelectTransform {
collection = RandomCollection.of(weights, random); collection = RandomCollection.of(weights, random);
extents = new LinkedHashSet<>(weights.keySet()); extents = new LinkedHashSet<>(weights.keySet());
} }
for (AbstractDelegateExtent current : extents) { for (ResettableExtent current : extents) {
if (current instanceof ResettableExtent) { current.setExtent(extent);
((ResettableExtent) current).setExtent(extent);
}
} }
return this; return this;
} }