tinker's + ofanix (#92)

* tinker's + ofanix
tinker's tools can place cobblestone with ztones ofanix

* fix ofanix
* declaring a global variable instead of a local one for ofanix
This commit is contained in:
Quetz4l authored and GitHub committed 2023-09-08 17:46:18 +02:00
1 parent 1bb6fed60a
commit 0519eee1d9
2 files changed
+6 -1

No files matched your search

@@ -134,7 +134,8 @@ public abstract class HarvestTool extends ToolCore {
if (nearbyStack != null) {
Item item = nearbyStack.getItem();
if (item instanceof ItemBlock || (item != null && item == TinkerTools.openBlocksDevNull)) {
if (item instanceof ItemBlock || (item != null && item == TinkerTools.openBlocksDevNull)
|| (TinkerTools.ofanix != null && TinkerTools.ofanix == item)) {
int posX = x;
int posY = y;
int posZ = z;
@@ -146,6 +146,7 @@ public class TinkerTools {
// Dev/Null Stuff
public static Item openBlocksDevNull;
public static Item ofanix;
@Handler
public void preInit(FMLPreInitializationEvent event) {
@@ -1337,6 +1338,9 @@ public class TinkerTools {
// OpenBlocks
openBlocksDevNull = GameRegistry.findItem("OpenBlocks", "devnull");
// Ztones
ofanix = GameRegistry.findItem("Ztones", "ofanix");
}
void registerMaterials() {