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:
parent
0f73b62658
commit
a10813036b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user