geforkt von Mirrors/Paper
Remove unnecessary onTrackingStart during navigation warning
Dieser Commit ist enthalten in:
Ursprung
0b9ef3701e
Commit
dbfc5fda14
@ -839,14 +839,15 @@
|
|||||||
case NONE:
|
case NONE:
|
||||||
explosion_effect = Explosion.BlockInteraction.KEEP;
|
explosion_effect = Explosion.BlockInteraction.KEEP;
|
||||||
break;
|
break;
|
||||||
@@ -1144,16 +1492,27 @@
|
@@ -1143,17 +1491,28 @@
|
||||||
|
break;
|
||||||
case TRIGGER:
|
case TRIGGER:
|
||||||
explosion_effect = Explosion.BlockInteraction.TRIGGER_BLOCK;
|
explosion_effect = Explosion.BlockInteraction.TRIGGER_BLOCK;
|
||||||
break;
|
+ break;
|
||||||
+ // CraftBukkit start - handle custom explosion type
|
+ // CraftBukkit start - handle custom explosion type
|
||||||
+ case STANDARD:
|
+ case STANDARD:
|
||||||
+ explosion_effect = Explosion.BlockInteraction.DESTROY;
|
+ explosion_effect = Explosion.BlockInteraction.DESTROY;
|
||||||
+ break;
|
break;
|
||||||
+ // CraftBukkit end
|
+ // CraftBukkit end
|
||||||
default:
|
default:
|
||||||
throw new MatchException((String) null, (Throwable) null);
|
throw new MatchException((String) null, (Throwable) null);
|
||||||
@ -1052,7 +1053,7 @@
|
|||||||
ServerLevel.this.entityTickList.add(entity);
|
ServerLevel.this.entityTickList.add(entity);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1836,7 +2244,8 @@
|
@@ -1836,14 +2244,15 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onTrackingStart(Entity entity) {
|
public void onTrackingStart(Entity entity) {
|
||||||
@ -1062,6 +1063,14 @@
|
|||||||
if (entity instanceof ServerPlayer entityplayer) {
|
if (entity instanceof ServerPlayer entityplayer) {
|
||||||
ServerLevel.this.players.add(entityplayer);
|
ServerLevel.this.players.add(entityplayer);
|
||||||
ServerLevel.this.updateSleepingPlayerList();
|
ServerLevel.this.updateSleepingPlayerList();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (entity instanceof Mob entityinsentient) {
|
||||||
|
- if (ServerLevel.this.isUpdatingNavigations) {
|
||||||
|
+ if (false && ServerLevel.this.isUpdatingNavigations) { // Paper - Remove unnecessary onTrackingStart during navigation warning
|
||||||
|
String s = "onTrackingStart called during navigation iteration";
|
||||||
|
|
||||||
|
Util.logAndPauseIfInIde("onTrackingStart called during navigation iteration", new IllegalStateException("onTrackingStart called during navigation iteration"));
|
||||||
@@ -1864,9 +2273,58 @@
|
@@ -1864,9 +2273,58 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1121,6 +1130,15 @@
|
|||||||
ServerLevel.this.getChunkSource().removeEntity(entity);
|
ServerLevel.this.getChunkSource().removeEntity(entity);
|
||||||
if (entity instanceof ServerPlayer entityplayer) {
|
if (entity instanceof ServerPlayer entityplayer) {
|
||||||
ServerLevel.this.players.remove(entityplayer);
|
ServerLevel.this.players.remove(entityplayer);
|
||||||
|
@@ -1874,7 +2332,7 @@
|
||||||
|
}
|
||||||
|
|
||||||
|
if (entity instanceof Mob entityinsentient) {
|
||||||
|
- if (ServerLevel.this.isUpdatingNavigations) {
|
||||||
|
+ if (false && ServerLevel.this.isUpdatingNavigations) { // Paper - Remove unnecessary onTrackingStart during navigation warning
|
||||||
|
String s = "onTrackingStart called during navigation iteration";
|
||||||
|
|
||||||
|
Util.logAndPauseIfInIde("onTrackingStart called during navigation iteration", new IllegalStateException("onTrackingStart called during navigation iteration"));
|
||||||
@@ -1895,6 +2353,15 @@
|
@@ -1895,6 +2353,15 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren