forked from BynBang/OpenPrestige
fixes
This commit is contained in:
1 parent
83aea53e57
commit
aa4f6b6ddc
842 files changed
+47284
-91563
No files matched your search
@@ -1,8 +1,8 @@
|
||||
package dev.zprestige.prestige.mixin;
|
||||
|
||||
import dev.zprestige.prestige.client.Prestige;
|
||||
import dev.zprestige.prestige.event.BlockBoolEvent;
|
||||
import dev.zprestige.prestige.util.ClientUtil;
|
||||
import dev.zprestige.prestige.event.BlockVisibilityEvent;
|
||||
import dev.zprestige.prestige.util.HookBridge;
|
||||
import net.lenni0451.classtransform.InjectionCallback;
|
||||
import net.lenni0451.classtransform.annotations.CTarget;
|
||||
import net.lenni0451.classtransform.annotations.CTransformer;
|
||||
@@ -17,9 +17,9 @@ public class ChunkOcclusionDataBuilderMixin {
|
||||
target = {@CTarget("HEAD")},
|
||||
cancellable = true
|
||||
)
|
||||
private void a(BlockPos pos, InjectionCallback ci) {
|
||||
if (ClientUtil.R(Prestige.eventBus, BlockBoolEvent.class)) {
|
||||
if (ClientUtil.T(ClientUtil.S(null))) {
|
||||
private void skipChunkOcclusionAtMarkClosedHead(BlockPos pos, InjectionCallback ci) {
|
||||
if (HookBridge.hasChunkOcclusionListeners(Prestige.eventBus, BlockVisibilityEvent.class)) {
|
||||
if (HookBridge.postChunkOcclusionEvent(HookBridge.createChunkOcclusionEvent(null))) {
|
||||
ci.cancel();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user