Migrate Context usage from recently merged PR
This commit is contained in:
1 parent
bc5ece085c
commit
583a372ba4
1 file changed
+1
-1
@@ -200,7 +200,7 @@ public class SystemInfo {
|
|||||||
});
|
});
|
||||||
return MapValue.wrap(rules);
|
return MapValue.wrap(rules);
|
||||||
});
|
});
|
||||||
put("world_min_spawning_light", c-> NumericValue.of(c.s.getLevel().dimensionType().monsterSpawnBlockLightLimit()));
|
put("world_min_spawning_light", c-> NumericValue.of(c.level().dimensionType().monsterSpawnBlockLightLimit()));
|
||||||
|
|
||||||
put("source_entity", c -> EntityValue.of(c.source().getEntity()));
|
put("source_entity", c -> EntityValue.of(c.source().getEntity()));
|
||||||
put("source_position", c -> ValueConversions.of(c.source().getPosition()));
|
put("source_position", c -> ValueConversions.of(c.source().getPosition()));
|
||||||
|
|||||||
Reference in new issue
Block a user