Skip to content

Commit

Permalink
Fixed Box of Illusions MP crash; Fixed rare Soulspike crash
Browse files Browse the repository at this point in the history
  • Loading branch information
TCLProject committed Nov 2, 2023
1 parent c71f231 commit 796c0cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/am2/items/ItemBoxOfIllusions.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public String getItemStackDisplayName(ItemStack p_77653_1_)

@Override
public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player){
RenderItemBoxOfIllusions.doRotations = true;
if (world.isRemote) RenderItemBoxOfIllusions.doRotations = true;
return super.onItemRightClick(stack, world, player);
}

Expand Down
2 changes: 2 additions & 0 deletions src/main/java/am2/items/ItemSoulspike.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ public static void addTagToBoots(ItemStack boots) { // for 'telling' other playe
}

public static void removeTagFromBoots(ItemStack boots) {
if (boots == null) return;
if (boots.stackTagCompound == null)
{
return;
Expand All @@ -104,6 +105,7 @@ public static void removeTagFromBoots(ItemStack boots) {
}

public static boolean bootsHaveEtherealTag(ItemStack boots) {
if (boots == null) return false;
if (boots.stackTagCompound == null)
{
return false;
Expand Down

0 comments on commit 796c0cc

Please sign in to comment.