File tree Expand file tree Collapse file tree
core/src/main/java/com/nisovin/magicspells/spells/buff/ext Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88import org .bukkit .entity .Villager ;
99import org .bukkit .entity .LivingEntity ;
1010
11+ import io .github .retrooper .packetevents .util .SpigotConversionUtil ;
12+
1113import com .nisovin .magicspells .MagicSpells ;
1214import com .nisovin .magicspells .util .DependsOn ;
1315import com .nisovin .magicspells .util .SpellData ;
@@ -153,7 +155,7 @@ public boolean castBuff(SpellData data) {
153155 droppedItemWatcher .setItemStack (entityData .getDroppedItemStack ().get (data ));
154156
155157 if (watcher instanceof EndermanWatcher endermanWatcher )
156- endermanWatcher .setItemInMainHand ( entityData .getCarriedBlockData ().get (data ). getMaterial ( ));
158+ endermanWatcher .setHeldBlock ( SpigotConversionUtil . fromBukkitBlockData ( entityData .getCarriedBlockData ().get (data )));
157159
158160 if (watcher instanceof FallingBlockWatcher fallingBlockWatcher )
159161 fallingBlockWatcher .setBlockData (entityData .getFallingBlockData ().get (data ));
You can’t perform that action at this time.
0 commit comments