Skip to content

Commit

Permalink
Fix creative mode search, add CCOrganItem interface and NBT organ sup…
Browse files Browse the repository at this point in the history
…port
  • Loading branch information
Tigereye504 committed Jul 13, 2023
1 parent 764632b commit daf9e4d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ org.gradle.jvmargs=-Xmx1G
loader_version=0.14.21

# Mod Properties
mod_version = 2.16.6-test
mod_version = 2.16.6
maven_group = net.tigereye.chestcavity
archives_base_name = chestcavity

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package net.tigereye.chestcavity.interfaces;

import net.minecraft.item.ItemStack;
import net.tigereye.chestcavity.chestcavities.organs.OrganData;

public interface CCOrganItem {

public OrganData getOrganData();
public OrganData getOrganData(ItemStack stack);
}
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ public static OrganData lookupOrgan(ItemStack itemStack, ChestCavityType cct){
return organData;
}
else if(itemStack.getItem() instanceof CCOrganItem oItem){
return oItem.getOrganData();
return oItem.getOrganData(itemStack);
}
else if(OrganManager.hasEntry(itemStack.getItem())){ //check for normal organs
return OrganManager.getEntry(itemStack.getItem());
Expand Down

0 comments on commit daf9e4d

Please sign in to comment.