Skip to content

Commit

Permalink
🐛 fix(Orechid): Make sure DynaTech's instance is not null. Fixes #224,
Browse files Browse the repository at this point in the history
…Fixes #218
  • Loading branch information
ProfElements committed Sep 22, 2024
1 parent 8e9aedd commit 82ada13
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ protected boolean checkTickPreconditions(Block b) {

@Override
public void tick(Block b, SlimefunItem sfItem) {
if (DynaTech.getInstance() == null) {
return;
}

if (DynaTech.getInstance().getTickInterval() % 10 == 0) {
for (BlockFace relative : BlockFace.values()) {
if (getCharge(b.getLocation()) < getEnergyConsumption()) {
Expand Down

0 comments on commit 82ada13

Please sign in to comment.