1.19.3-pre2
This commit is contained in:
1 parent
f7d9f662fd
commit
1edd06605b
3 files changed
+4
-4
No files matched your search
@@ -219,7 +219,7 @@ public class FeatureGenerator
|
||||
|
||||
if (!computeBox) {
|
||||
Holder<Biome> genBiome = generator.getBiomeSource().getNoiseBiome(QuartPos.fromBlock(pos.getX()), QuartPos.fromBlock(pos.getY()), QuartPos.fromBlock(pos.getZ()), seed.sampler());
|
||||
if (structureBiomes.contains(genBiome) && structure.findGenerationPoint(new Structure.GenerationContext(
|
||||
if (structureBiomes.contains(genBiome) && structure.findValidGenerationPoint(new Structure.GenerationContext(
|
||||
world.registryAccess(), generator, generator.getBiomeSource(),
|
||||
seed, world.getStructureManager(), world.getSeed(), chunkPos, world, structureBiomes::contains
|
||||
)).isPresent())
|
||||
|
||||
@@ -1549,7 +1549,7 @@ public class EntityValue extends Value
|
||||
put("gamemode", (e,v)->{
|
||||
if(!(e instanceof ServerPlayer)) return;
|
||||
GameType toSet = v instanceof NumericValue ?
|
||||
GameType.byId(((NumericValue) v).getInt(), null) :
|
||||
GameType.byId(((NumericValue) v).getInt()) :
|
||||
GameType.byName(v.getString().toLowerCase(Locale.ROOT), null);
|
||||
if (toSet != null) ((ServerPlayer) e).setGameMode(toSet);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user