1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-20 03:35:51 +00:00

Added poma's suggested change

Co-authored-by: poma123 <25465545+poma123@users.noreply.github.com>
This commit is contained in:
TheBusyBiscuit 2020-08-17 13:30:18 +02:00 committed by GitHub
parent 0f73b62658
commit a10813036b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,9 +36,9 @@ public class RuneOfUnemployment extends SimpleSlimefunItem<EntityInteractHandler
@Override
public EntityInteractHandler getItemHandler() {
return (p, entity, item, offhand) -> {
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;