Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 12:30:06 +01:00
18 Zeilen
632 B
Diff
18 Zeilen
632 B
Diff
|
@@ -1,6 +1,7 @@
|
||
|
package net.minecraft.server;
|
||
|
|
||
|
import java.util.Iterator;
|
||
|
+import org.bukkit.craftbukkit.entity.CraftVillager;
|
||
|
|
||
|
public class EntityVillager extends EntityAgeable implements NPC, IMerchant {
|
||
|
|
||
|
@@ -28,7 +29,7 @@
|
||
|
|
||
|
public EntityVillager(World world, int i) {
|
||
|
super(world);
|
||
|
- this.inventory = new InventorySubcontainer("Items", false, 8);
|
||
|
+ this.inventory = new InventorySubcontainer("Items", false, 8, (CraftVillager) this.getBukkitEntity()); // CraftBukkit add argument
|
||
|
this.setProfession(i);
|
||
|
this.a(0.6F, 1.8F);
|
||
|
((Navigation) this.getNavigation()).b(true);
|