Skip to content

Commit

Permalink
Fix #4666
Browse files Browse the repository at this point in the history
  • Loading branch information
IThundxr committed Mar 2, 2024
1 parent dacf56d commit 4b56cf3
Showing 1 changed file with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package org.violetmoon.quark.addons.oddities.block.be;

import com.google.common.collect.Lists;

import net.minecraft.core.BlockPos;
import net.minecraft.core.particles.ParticleOptions;
import net.minecraft.core.particles.ParticleTypes;
Expand Down Expand Up @@ -30,10 +29,8 @@
import net.minecraft.world.phys.AABB;
import net.minecraft.world.phys.shapes.CollisionContext;
import net.minecraft.world.phys.shapes.VoxelShape;

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import org.violetmoon.quark.addons.oddities.inventory.EnchantmentMatrix;
import org.violetmoon.quark.addons.oddities.inventory.EnchantmentMatrix.Piece;
import org.violetmoon.quark.addons.oddities.inventory.MatrixEnchantingMenu;
Expand Down Expand Up @@ -236,6 +233,11 @@ private void makeUUID() {
}

public void updateEnchantPower() {
ItemStack item = getItem(0);
influences.clear();
if(!item.isEmpty())
enchantability = Quark.ZETA.itemExtensions.get(item).getEnchantmentValueZeta(item);

boolean allowWater = MatrixEnchantingModule.allowUnderwaterEnchanting;
boolean allowShort = MatrixEnchantingModule.allowShortBlockEnchanting;

Expand All @@ -256,11 +258,6 @@ public void updateEnchantPower() {
}

bookshelfPower = Math.min((int) power, MatrixEnchantingModule.maxBookshelves);

ItemStack item = getItem(0);
influences.clear();
if(!item.isEmpty())
enchantability = Quark.ZETA.itemExtensions.get(item).getEnchantmentValueZeta(item);
}

private boolean isAirGap(int j, int k, boolean allowWater, boolean allowShortBlock) {
Expand Down

0 comments on commit 4b56cf3

Please sign in to comment.