You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: paper-server/patches/sources/net/minecraft/world/entity/monster/Phantom.java.patch
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -43,13 +43,15 @@
43
43
}
44
44
45
45
@Override
46
-
@@ -258,7 +_,8 @@
46
+
@@ -258,8 +_,10 @@
47
47
48
48
for (Player player : nearbyPlayers) {
49
49
if (Phantom.this.canAttack(serverLevel, player, TargetingConditions.DEFAULT)) {
50
50
- Phantom.this.setTarget(player);
51
-
+ if (!level().paperConfig().entities.behavior.phantomsOnlyAttackInsomniacs || EntitySelector.IS_INSOMNIAC.test(player)) // Paper - Add phantom creative and insomniac controls
51
+
+ if (!level().paperConfig().entities.behavior.phantomsOnlyAttackInsomniacs || EntitySelector.IS_INSOMNIAC.test(player)) { // Paper - Add phantom creative and insomniac controls
0 commit comments