mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-23 13:39:44 +00:00
Fix errors when placing fruit press
This commit is contained in:
1 parent
adef8dc0e4
commit
1d97fc17e6
2 files changed
+7
-1
No files matched your search
@@ -37,7 +37,11 @@ public class MachineComponent implements INbtReadable, INbtWritable {
|
||||
}
|
||||
|
||||
public Class<?>[] getComponentInterfaces() {
|
||||
return Binnie.MACHINE.getComponentInterfaces(this.getClass());
|
||||
Class<?>[] componentInterfaces = Binnie.MACHINE.getComponentInterfaces(this.getClass());
|
||||
if (componentInterfaces == null) {
|
||||
return new Class[0];
|
||||
}
|
||||
return componentInterfaces;
|
||||
}
|
||||
|
||||
public void onInventoryUpdate() {
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package binnie.core.machines;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
@@ -68,6 +69,7 @@ public class ManagerMachine extends ManagerBase {
|
||||
BinnieCore.getBinnieProxy().registerTileEntity(TileEntityMachine.class, "binnie.tile.machine", rendererMachine);
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public Class<?>[] getComponentInterfaces(final Class<? extends MachineComponent> clss) {
|
||||
if (!this.componentInterfaceMap.containsKey(clss)) {
|
||||
this.registerComponentClass(clss);
|
||||
|
||||
Reference in new issue
Block a user