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,7 +1,7 @@
|
||||
package dev.zprestige.prestige.mixin;
|
||||
|
||||
import dev.zprestige.prestige.event.FloatDoubleEvent;
|
||||
import dev.zprestige.prestige.util.ClientUtil;
|
||||
import dev.zprestige.prestige.event.ExplosionEvent;
|
||||
import dev.zprestige.prestige.util.HookBridge;
|
||||
import net.lenni0451.classtransform.InjectionCallback;
|
||||
import net.lenni0451.classtransform.annotations.CTarget;
|
||||
import net.lenni0451.classtransform.annotations.CTransformer;
|
||||
@@ -21,7 +21,7 @@ public class ServerWorldMixin {
|
||||
method = {"createExplosion"},
|
||||
target = {@CTarget("HEAD")}
|
||||
)
|
||||
public void a(
|
||||
public void postExplosionEventAtCreateExplosionHead(
|
||||
Entity entity,
|
||||
DamageSource damageSource,
|
||||
ExplosionBehavior behavior,
|
||||
@@ -36,7 +36,7 @@ public class ServerWorldMixin {
|
||||
RegistryEntry<SoundEvent> soundEvent,
|
||||
InjectionCallback ci
|
||||
) {
|
||||
FloatDoubleEvent event = ClientUtil.dW(power, x, y, z);
|
||||
ClientUtil.dX(event);
|
||||
ExplosionEvent event = HookBridge.createExplosionEvent(power, x, y, z);
|
||||
HookBridge.postExplosionEvent(event);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user