mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-29 08:27:03 +01:00
Fix ponder particles weirdness
This commit is contained in:
parent
411925033e
commit
8281c5746a
2 changed files with 15 additions and 5 deletions
|
@ -281,4 +281,14 @@ public class PonderWorld extends SchematicWorld {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean chunkExists(int x, int y) {
|
||||||
|
return true; // fix particle lighting
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isBlockPresent(BlockPos pos) {
|
||||||
|
return true; // fix particle lighting
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -59,11 +59,11 @@ public class PonderWorldParticles {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void renderParticles(MatrixStack ms, IRenderTypeBuffer buffer, ActiveRenderInfo p_228345_4_, float p_228345_5_) {
|
public void renderParticles(MatrixStack ms, IRenderTypeBuffer buffer, ActiveRenderInfo renderInfo, float pt) {
|
||||||
Minecraft mc = Minecraft.getInstance();
|
Minecraft mc = Minecraft.getInstance();
|
||||||
LightTexture p_228345_3_ = mc.gameRenderer.getLightmapTextureManager();
|
LightTexture lightTexture = mc.gameRenderer.getLightmapTextureManager();
|
||||||
|
|
||||||
p_228345_3_.enableLightmap();
|
lightTexture.enableLightmap();
|
||||||
Runnable enable = () -> {
|
Runnable enable = () -> {
|
||||||
RenderSystem.enableAlphaTest();
|
RenderSystem.enableAlphaTest();
|
||||||
RenderSystem.defaultAlphaFunc();
|
RenderSystem.defaultAlphaFunc();
|
||||||
|
@ -87,7 +87,7 @@ public class PonderWorldParticles {
|
||||||
iparticlerendertype.beginRender(bufferbuilder, mc.textureManager);
|
iparticlerendertype.beginRender(bufferbuilder, mc.textureManager);
|
||||||
|
|
||||||
for (Particle particle : iterable)
|
for (Particle particle : iterable)
|
||||||
particle.buildGeometry(bufferbuilder, p_228345_4_, p_228345_5_);
|
particle.buildGeometry(bufferbuilder, renderInfo, pt);
|
||||||
|
|
||||||
iparticlerendertype.finishRender(tessellator);
|
iparticlerendertype.finishRender(tessellator);
|
||||||
}
|
}
|
||||||
|
@ -97,7 +97,7 @@ public class PonderWorldParticles {
|
||||||
RenderSystem.depthMask(true);
|
RenderSystem.depthMask(true);
|
||||||
RenderSystem.disableBlend();
|
RenderSystem.disableBlend();
|
||||||
RenderSystem.defaultAlphaFunc();
|
RenderSystem.defaultAlphaFunc();
|
||||||
p_228345_3_.disableLightmap();
|
lightTexture.disableLightmap();
|
||||||
RenderSystem.disableFog();
|
RenderSystem.disableFog();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue