mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-02 05:02:10 -07:00
Ignore minecart in activation range (#10359)
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||||
From: Zach Brown <1254957+zachbr@users.noreply.github.com>
|
From: Zach Brown <1254957+zachbr@users.noreply.github.com>
|
||||||
Date: Wed, 2 Mar 2016 00:32:25 -0600
|
Date: Wed, 2 Mar 2016 00:32:25 -0600
|
||||||
Subject: [PATCH] Always tick falling blocks
|
Subject: [PATCH] Add more entities to activation range ignore list
|
||||||
|
|
||||||
|
|
||||||
diff --git a/src/main/java/org/spigotmc/ActivationRange.java b/src/main/java/org/spigotmc/ActivationRange.java
|
diff --git a/src/main/java/org/spigotmc/ActivationRange.java b/src/main/java/org/spigotmc/ActivationRange.java
|
||||||
@@ -13,6 +13,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
|| entity instanceof LightningBolt
|
|| entity instanceof LightningBolt
|
||||||
|| entity instanceof PrimedTnt
|
|| entity instanceof PrimedTnt
|
||||||
+ || entity instanceof net.minecraft.world.entity.item.FallingBlockEntity // Paper - Always tick falling blocks
|
+ || entity instanceof net.minecraft.world.entity.item.FallingBlockEntity // Paper - Always tick falling blocks
|
||||||
|
+ || entity instanceof net.minecraft.world.entity.vehicle.AbstractMinecart // Paper
|
||||||
|
+ || entity instanceof net.minecraft.world.entity.vehicle.Boat // Paper
|
||||||
|| entity instanceof EndCrystal
|
|| entity instanceof EndCrystal
|
||||||
|| entity instanceof FireworkRocketEntity
|
|| entity instanceof FireworkRocketEntity
|
||||||
|| entity instanceof ThrownTrident )
|
|| entity instanceof ThrownTrident )
|
@@ -137,7 +137,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
this.setDeltaMovement(Vec3.ZERO);
|
this.setDeltaMovement(Vec3.ZERO);
|
||||||
}
|
}
|
||||||
+ // Paper start - ignore movement changes while inactive.
|
+ // Paper start - ignore movement changes while inactive.
|
||||||
+ if (isTemporarilyActive && !(this instanceof ItemEntity || this instanceof net.minecraft.world.entity.vehicle.AbstractMinecart) && movement == getDeltaMovement() && movementType == MoverType.SELF) {
|
+ if (isTemporarilyActive && !(this instanceof ItemEntity) && movement == getDeltaMovement() && movementType == MoverType.SELF) {
|
||||||
+ setDeltaMovement(Vec3.ZERO);
|
+ setDeltaMovement(Vec3.ZERO);
|
||||||
+ this.level.getProfiler().pop();
|
+ this.level.getProfiler().pop();
|
||||||
+ return;
|
+ return;
|
||||||
|
Reference in New Issue
Block a user