mc 26.1-snap-1
This commit is contained in:
1 parent
4e160d235a
commit
be1211dda7
24 files changed
+61
-60
No files matched your search
@@ -89,7 +89,7 @@ public class FeatureGenerator
|
||||
checks.set(true);
|
||||
try
|
||||
{
|
||||
return configuredFeature.place(world, world.getChunkSource().getGenerator(), world.random, pos);
|
||||
return configuredFeature.place(world, world.getChunkSource().getGenerator(), world.getRandom(), pos);
|
||||
}
|
||||
finally
|
||||
{
|
||||
@@ -115,7 +115,7 @@ public class FeatureGenerator
|
||||
checks.set(true);
|
||||
try
|
||||
{
|
||||
return configuredStandard.place(world, world.getChunkSource().getGenerator(), world.random, pos);
|
||||
return configuredStandard.place(world, world.getChunkSource().getGenerator(), world.getRandom(), pos);
|
||||
}
|
||||
finally
|
||||
{
|
||||
@@ -161,7 +161,7 @@ public class FeatureGenerator
|
||||
checks.set(true);
|
||||
try
|
||||
{
|
||||
return feature.place(w, w.getChunkSource().getGenerator(), w.random, p);
|
||||
return feature.place(w, w.getChunkSource().getGenerator(), w.getRandom(), p);
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
||||
@@ -2245,7 +2245,7 @@ public class ShapeDispatcher
|
||||
int pcount = 0;
|
||||
if (distance < 100)
|
||||
{
|
||||
RandomSource rand = players.get(0).level().random;
|
||||
RandomSource rand = players.get(0).level().getRandom();
|
||||
int particles = (int) (distance / density) + 1;
|
||||
Vec3 towards = to.subtract(from);
|
||||
for (int i = 0; i < particles; i++)
|
||||
|
||||
@@ -26,7 +26,6 @@ import net.minecraft.client.gui.Font;
|
||||
import net.minecraft.client.gui.components.debug.DebugScreenEntries;
|
||||
import net.minecraft.client.multiplayer.ClientLevel;
|
||||
import net.minecraft.client.renderer.ItemBlockRenderTypes;
|
||||
import net.minecraft.client.renderer.LightTexture;
|
||||
import net.minecraft.client.renderer.MultiBufferSource;
|
||||
import net.minecraft.client.renderer.RenderBuffers;
|
||||
import net.minecraft.client.renderer.rendertype.RenderType;
|
||||
@@ -43,6 +42,7 @@ import net.minecraft.core.Direction;
|
||||
import net.minecraft.nbt.CompoundTag;
|
||||
import net.minecraft.nbt.ListTag;
|
||||
import net.minecraft.resources.ResourceKey;
|
||||
import net.minecraft.util.LightCoordsUtil;
|
||||
import net.minecraft.util.Mth;
|
||||
import net.minecraft.util.ProblemReporter;
|
||||
import net.minecraft.world.item.ItemDisplayContext;
|
||||
@@ -406,7 +406,7 @@ public class ShapesRenderer
|
||||
int light = 0;
|
||||
if (client.level != null)
|
||||
{
|
||||
light = LightTexture.pack(
|
||||
light = LightCoordsUtil.pack(
|
||||
shape.blockLight < 0 ? client.level.getBrightness(LightLayer.BLOCK, blockPos) : shape.blockLight,
|
||||
shape.skyLight < 0 ? client.level.getBrightness(LightLayer.SKY, blockPos) : shape.skyLight
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user