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;
|
||||
@@ -18,10 +18,10 @@ public class AbstractBlockStateMixin {
|
||||
target = {@CTarget("RETURN")},
|
||||
cancellable = true
|
||||
)
|
||||
private void a(BlockView blockView, BlockPos blockPos, InjectionCallback cir) {
|
||||
if (ClientUtil.a(Prestige.eventBus, BlockBoolEvent.class)) {
|
||||
BlockBoolEvent event = ClientUtil.b(null);
|
||||
if (ClientUtil.c(event)) {
|
||||
private void overrideAmbientOcclusionLightLevelAtReturn(BlockView blockView, BlockPos blockPos, InjectionCallback cir) {
|
||||
if (HookBridge.hasAmbientOcclusionListeners(Prestige.eventBus, BlockVisibilityEvent.class)) {
|
||||
BlockVisibilityEvent event = HookBridge.createAmbientOcclusionEvent(null);
|
||||
if (HookBridge.postAmbientOcclusionEvent(event)) {
|
||||
cir.setReturnValue(1.0F);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user