diff options
author | Alkalus <3060479+draknyte1@users.noreply.github.com> | 2018-07-01 20:41:20 +1000 |
---|---|---|
committer | Alkalus <3060479+draknyte1@users.noreply.github.com> | 2018-07-01 20:41:20 +1000 |
commit | 1a9e60e4fdb194416c622d44235a931bac79e606 (patch) | |
tree | bed3439e8f87a83767071d2090dd7a8564949b08 /src/Java/gtPlusPlus/plugin/villagers/entity | |
parent | fe15444a942c8d2b7740246c4fdb83d3f772950e (diff) | |
download | GT5-Unofficial-1a9e60e4fdb194416c622d44235a931bac79e606.tar.gz GT5-Unofficial-1a9e60e4fdb194416c622d44235a931bac79e606.tar.bz2 GT5-Unofficial-1a9e60e4fdb194416c622d44235a931bac79e606.zip |
$ Improved handling of Custom Skins for Villagers.
Diffstat (limited to 'src/Java/gtPlusPlus/plugin/villagers/entity')
-rw-r--r-- | src/Java/gtPlusPlus/plugin/villagers/entity/EntityBaseVillager.java | 5 |
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 |