Skip to content

Commit

Permalink
Fix startup crash of NuclearCraft
Browse files Browse the repository at this point in the history
  • Loading branch information
TonimatasDEV committed Jun 11, 2024
1 parent fb87ac0 commit fc922d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
}

}
@@ -217,45 +_,154 @@
@@ -217,45 +_,153 @@
if (this.destroyBlock(p_9287_)) {
this.player.connection.send(new ClientboundBlockBreakAckPacket(p_9287_, this.level.getBlockState(p_9287_), p_9288_, true, p_9289_));
} else {
Expand Down Expand Up @@ -282,7 +282,6 @@
+ ItemStack itemstack = this.player.getItemBySlot(net.minecraft.world.entity.EquipmentSlot.MAINHAND);
+
+ this.level.getCraftServer().getPluginManager().callEvent(event);
+
+ if (event.isCancelled()) {
+ if (isSwordNoBreak) {
+ return java.util.Optional.empty();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
+
+ private net.minecraft.network.chat.Component title;
+
+ public final net.minecraft.network.chat.Component getTitle() {
+ public net.minecraft.network.chat.Component getTitle() { // Remove final
+ return this.title == null ? net.minecraft.network.chat.TextComponent.EMPTY : this.title; //Magma - allow null titles
+ }
+
Expand Down

0 comments on commit fc922d7

Please sign in to comment.