Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- a/net/minecraft/world/entity/projectile/throwableitemprojectile/AbstractThrownPotion.java
+++ b/net/minecraft/world/entity/projectile/throwableitemprojectile/AbstractThrownPotion.java
@@ -68,56 +_,97 @@
@@ -68,56 +_,98 @@
@Override
protected void onHit(HitResult result) {
super.onHit(result);
Expand All @@ -10,6 +10,7 @@
+
+ public void splash(HitResult result) {
+ // Paper end - More projectile API
+ if (result == null) result = BlockHitResult.miss(this.position(), Direction.UP, this.blockPosition()); // Paper - More projectile API; default to entity position for API calls
if (this.level() instanceof ServerLevel serverLevel) {
ItemStack item = this.getItem();
PotionContents potionContents = item.getOrDefault(DataComponents.POTION_CONTENTS, PotionContents.EMPTY);
Expand Down