From a10813036bd57b2da1a3c8e8ce8b14c359558fa9 Mon Sep 17 00:00:00 2001 From: TheBusyBiscuit Date: Mon, 17 Aug 2020 13:30:18 +0200 Subject: [PATCH] Added poma's suggested change Co-authored-by: poma123 <25465545+poma123@users.noreply.github.com> --- .../implementation/items/magical/RuneOfUnemployment.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/io/github/thebusybiscuit/slimefun4/implementation/items/magical/RuneOfUnemployment.java b/src/main/java/io/github/thebusybiscuit/slimefun4/implementation/items/magical/RuneOfUnemployment.java index 37ed412bb..8d5bec5fe 100644 --- a/src/main/java/io/github/thebusybiscuit/slimefun4/implementation/items/magical/RuneOfUnemployment.java +++ b/src/main/java/io/github/thebusybiscuit/slimefun4/implementation/items/magical/RuneOfUnemployment.java @@ -36,9 +36,9 @@ public class RuneOfUnemployment extends SimpleSlimefunItem { - if (entity instanceof Villager) { - Villager v = (Villager) entity; + return (e, item, offhand) -> { + if (e.getRightClicked() instanceof Villager) { + Villager v = (Villager) e.getRightClicked(); if (v.getProfession() == Profession.NONE || v.getProfession() == Profession.NITWIT) { return;