mirror of
https://github.com/Xiao-MoMi/craft-engine.git
synced 2025-12-25 18:09:27 +00:00
fix(bukkit): 修复错误的if判断
This commit is contained in:
@@ -179,7 +179,7 @@ public final class BlockGenerator {
|
||||
.method(ElementMatchers.is(CoreReflections.method$BlockBehaviour$isSignalSource))
|
||||
.intercept(MethodDelegation.to(IsSignalSourceInterceptor.INSTANCE))
|
||||
.method(ElementMatchers.is(CoreReflections.method$Block$playerWillDestroy))
|
||||
.intercept(MethodDelegation.to(VersionHelper.isOrAbove1_21_2() ? PlayerWillDestroyInterceptor1_20_3.INSTANCE : PlayerWillDestroyInterceptor1_20.INSTANCE));
|
||||
.intercept(MethodDelegation.to(VersionHelper.isOrAbove1_20_3() ? PlayerWillDestroyInterceptor1_20_3.INSTANCE : PlayerWillDestroyInterceptor1_20.INSTANCE));
|
||||
if (CoreReflections.method$BlockBehaviour$affectNeighborsAfterRemoval != null) {
|
||||
builder.method(ElementMatchers.is(CoreReflections.method$BlockBehaviour$affectNeighborsAfterRemoval))
|
||||
.intercept(MethodDelegation.to(AffectNeighborsAfterRemovalInterceptor.INSTANCE));
|
||||
|
||||
Reference in New Issue
Block a user