Move patches to unapplied
This commit is contained in:
@@ -1,21 +0,0 @@
|
||||
--- a/net/minecraft/world/item/SplashPotionItem.java
|
||||
+++ b/net/minecraft/world/item/SplashPotionItem.java
|
||||
@@ -14,6 +14,10 @@
|
||||
|
||||
@Override
|
||||
public InteractionResult use(Level world, Player user, InteractionHand hand) {
|
||||
+ // Paper start - PlayerLaunchProjectileEvent
|
||||
+ final InteractionResult wrapper = super.use(world, user, hand);
|
||||
+ if (wrapper instanceof InteractionResult.Fail) return wrapper;
|
||||
+ // Paper end - PlayerLaunchProjectileEvent
|
||||
world.playSound(
|
||||
null,
|
||||
user.getX(),
|
||||
@@ -24,6 +28,6 @@
|
||||
0.5F,
|
||||
0.4F / (world.getRandom().nextFloat() * 0.4F + 0.8F)
|
||||
);
|
||||
- return super.use(world, user, hand);
|
||||
+ return wrapper; // Paper - PlayerLaunchProjectileEvent
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user