Push build error fix for eclipse
Was sitting for ~1/2 year uncommitted
This commit is contained in:
1 parent
3b5940c208
commit
0d2c21ada4
1 file changed
+2
-1
@@ -178,7 +178,8 @@ public class Entities
|
|||||||
String who = lv.get(0).getString();
|
String who = lv.get(0).getString();
|
||||||
CommandSourceStack source = ((CarpetContext) c).source();
|
CommandSourceStack source = ((CarpetContext) c).source();
|
||||||
EntityValue.EntityClassDescriptor eDesc = EntityValue.getEntityDescriptor(who, source.getServer());
|
EntityValue.EntityClassDescriptor eDesc = EntityValue.getEntityDescriptor(who, source.getServer());
|
||||||
List<? extends Entity> entityList = source.getLevel().getEntities(eDesc.directType, eDesc.filteringPredicate);
|
@SuppressWarnings("unchecked") // Eclipse's compiler finds an error if the cast isn't there (TODO report to ECJ)
|
||||||
|
List<? extends Entity> entityList = (List<? extends Entity>) source.getLevel().getEntities(eDesc.directType, eDesc.filteringPredicate);
|
||||||
return ListValue.wrap(entityList.stream().map(EntityValue::new));
|
return ListValue.wrap(entityList.stream().map(EntityValue::new));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user