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
session.setSystemProperties(System.getProperties()); // Paper - paper plugins, backport system properties fix for transitive dependency parsing, see #10116
+ this.player.detectEquipmentUpdatesPublic(); // Paper - Force update attributes.
581
+
+ this.player.detectEquipmentUpdates(); // Paper - Force update attributes.
582
582
}
583
583
}
584
584
@@ -1113,7 +1113,7 @@
1113
1113
+ }
1114
1114
+ // CraftBukkit end
1115
1115
this.player.stopUsingItem();
1116
-
+ this.player.detectEquipmentUpdatesPublic(); // Paper - Force update attributes.
1116
+
+ this.player.detectEquipmentUpdates(); // Paper - Force update attributes.
1117
1117
}
1118
1118
1119
1119
return;
@@ -1135,21 +1135,21 @@
1135
1135
+ }
1136
1136
+ // CraftBukkit end
1137
1137
this.player.drop(false);
1138
-
+ this.player.detectEquipmentUpdatesPublic(); // Paper - Force update attributes.
1138
+
+ this.player.detectEquipmentUpdates(); // Paper - Force update attributes.
1139
1139
}
1140
1140
1141
1141
return;
1142
1142
case DROP_ALL_ITEMS:
1143
1143
if (!this.player.isSpectator()) {
1144
1144
this.player.drop(true);
1145
-
+ this.player.detectEquipmentUpdatesPublic(); // Paper - Force update attributes.
1145
+
+ this.player.detectEquipmentUpdates(); // Paper - Force update attributes.
1146
1146
}
1147
1147
1148
1148
return;
1149
1149
case RELEASE_USE_ITEM:
1150
1150
- this.player.releaseUsingItem();
1151
1151
+ if (this.player.getUseItem() == this.player.getItemInHand(this.player.getUsedItemHand())) this.player.releaseUsingItem(); // Paper - validate use item before processing release
1152
-
+ this.player.detectEquipmentUpdatesPublic(); // Paper - Force update attributes.
1152
+
+ this.player.detectEquipmentUpdates(); // Paper - Force update attributes.
1153
1153
return;
1154
1154
case START_DESTROY_BLOCK:
1155
1155
case ABORT_DESTROY_BLOCK:
@@ -1182,7 +1182,7 @@
1182
1182
+ }
1183
1183
+ }
1184
1184
+ // Paper end - Send block entities after destroy prediction
1185
-
+ this.player.detectEquipmentUpdatesPublic(); // Paper - Force update attributes.
1185
+
+ this.player.detectEquipmentUpdates(); // Paper - Force update attributes.
1186
1186
return;
1187
1187
default:
1188
1188
throw new IllegalArgumentException("Invalid player action");
0 commit comments