Update VillagerWorkstationEvent to remove outdated api use
This commit is contained in:
parent
8ad6fe2608
commit
85e5effc15
|
|
@ -38,7 +38,7 @@ public class VillagerWorkstationEvent implements Listener {
|
|||
}
|
||||
|
||||
private void showWorkstation(Player player, Villager villager) {
|
||||
String professionName = formatName(villager.getProfession().name());
|
||||
String professionName = formatName(villager.getProfession().key().asMinimalString());
|
||||
Location jobSite = villager.getMemory(MemoryKey.JOB_SITE);
|
||||
|
||||
if (jobSite == null) {
|
||||
|
|
@ -73,7 +73,7 @@ public class VillagerWorkstationEvent implements Listener {
|
|||
double angle = (2 * Math.PI * i) / count;
|
||||
double x = cx + 0.5 * Math.cos(angle);
|
||||
double z = cz + 0.5 * Math.sin(angle);
|
||||
player.spawnParticle(Particle.VILLAGER_HAPPY, x, cy, z, 1, 0, 0, 0, 0);
|
||||
player.spawnParticle(Particle.HAPPY_VILLAGER, x, cy, z, 1, 0, 0, 0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user