forked from BynBang/OpenPrestige
fixed bugs, memory leaks, etc
This commit is contained in:
1 parent
aa4f6b6ddc
commit
c3f8f23c1d
124 files changed
+1060
-420
No files matched your search
@@ -35,7 +35,7 @@ public class FogRendererMixin {
|
||||
float cloudEnd,
|
||||
InjectionCallback ci
|
||||
) {
|
||||
if (HookBridge.hasFogBufferListeners(Prestige.eventBus, FogEvent.class)) {
|
||||
if (Prestige.eventBus != null && HookBridge.hasFogBufferListeners(Prestige.eventBus, FogEvent.class)) {
|
||||
FogEvent event = HookBridge.createFogBufferEvent(0.0F, 0.0F, Color.WHITE);
|
||||
if (HookBridge.postFogBufferEvent(event)) {
|
||||
Vector4f color = HookBridge.createFogBufferColor(
|
||||
@@ -66,7 +66,7 @@ public class FogRendererMixin {
|
||||
cancellable = true
|
||||
)
|
||||
private void overrideFogColorAtApplyFogTail(Camera camera, int viewDistance, RenderTickCounter tickCounter, float tickProgress, ClientWorld world, InjectionCallback ci) {
|
||||
if (HookBridge.hasFogColorListeners(Prestige.eventBus, FogEvent.class)) {
|
||||
if (Prestige.eventBus != null && HookBridge.hasFogColorListeners(Prestige.eventBus, FogEvent.class)) {
|
||||
FogEvent event = HookBridge.createFogColorEvent(0.0F, 0.0F, Color.WHITE);
|
||||
if (HookBridge.postFogColorEvent(event)) {
|
||||
Color fogColor = HookBridge.getFogColor(event);
|
||||
|
||||
Reference in new issue
Block a user