Quark

Quark

191M Downloads

"Curse Gear" can be bypassed by shift clicking.

miloqqq opened this issue ยท 1 comments

commented

When having the config option to make all items combined with an Ancient Tome be afflicted with a random curse, you can bypass the random curse by shift-clicking, bringing the item straight into your inventory.

On Quark-4.0-461 (1.20.1)

commented

Looks like this may be a general problem with the ZAnvilRepair event in Zeta:

@PlayEvent
public void onAnvilUse(ZAnvilRepair event) {
ItemStack output = event.getOutput();
ItemStack right = event.getRight();
if(curseGear && (right.is(ancient_tome) || event.getLeft().is(ancient_tome))) {
event.getOutput().enchant(curses.get(event.getEntity().level().random.nextInt(curses.size())), 1);
}
if(isOverlevel(output) && (right.getItem() == Items.ENCHANTED_BOOK || right.getItem() == ancient_tome) && event.getEntity() instanceof ServerPlayer sp)
overlevelTrigger.trigger(sp);
}