Fix build, add note

This commit is contained in:
dordsor21 2021-08-25 14:06:12 +01:00
parent 46fb0c9418
commit a66080d803
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B

View File

@ -341,7 +341,8 @@ public class BlockState implements BlockStateHolder<BlockState>, Pattern {
BlockType type = this.getBlockType();
// Lazily initialize the map
Map<? extends Property, Object> map = Maps.asMap(type.getPropertiesSet(), (Function<Property, Object>) this::getState);
return Collections.unmodifiableMap(map);
//noinspection RedundantCast - This is required for compilation, etc.
return Collections.unmodifiableMap((Map<Property<?>, Object>) map);
//FAWE end
}