aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/plugin/villagers/entity/EntityBaseVillager.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/Java/gtPlusPlus/plugin/villagers/entity/EntityBaseVillager.java')
-rw-r--r--src/Java/gtPlusPlus/plugin/villagers/entity/EntityBaseVillager.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Java/gtPlusPlus/plugin/villagers/entity/EntityBaseVillager.java b/src/Java/gtPlusPlus/plugin/villagers/entity/EntityBaseVillager.java
index 09bb65f620..5f0e0d27f0 100644
--- a/src/Java/gtPlusPlus/plugin/villagers/entity/EntityBaseVillager.java
+++ b/src/Java/gtPlusPlus/plugin/villagers/entity/EntityBaseVillager.java
@@ -44,6 +44,8 @@ public class EntityBaseVillager extends EntityVillager {
* interacts with buyingList and make it use your own list, or you need to not
* extend EntityVillager and just implement IMerchant instead.
*/
+
+ private final int mRoleID;
public EntityBaseVillager(World aWorld){
this(aWorld, 0);
@@ -51,6 +53,7 @@ public class EntityBaseVillager extends EntityVillager {
public EntityBaseVillager(World aWorld, int aID) {
super(aWorld, aID);
+ mRoleID = aID;
}
@Override
@@ -97,7 +100,7 @@ public class EntityBaseVillager extends EntityVillager {
@Override
public int getProfession() {
- return super.getProfession();
+ return 7735+mRoleID;
}
@Override