mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-24 21:04:27 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3dd8a60702 | ||
|
|
71c81bce27 | ||
|
|
f39ed1fd37 | ||
|
|
f3ebf86b1e | ||
|
|
f64399e40d |
No files matched your search
Binary file not shown.
+1
-1
@@ -17,7 +17,7 @@ buildscript {
|
|||||||
|
|
||||||
apply plugin: 'forge'
|
apply plugin: 'forge'
|
||||||
|
|
||||||
version = "1.3"
|
version = "1.3.1"
|
||||||
group= "com.yourname.modid" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
|
group= "com.yourname.modid" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
|
||||||
archivesBaseName = "CustomNPC-Plus"
|
archivesBaseName = "CustomNPC-Plus"
|
||||||
|
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ import noppes.npcs.entity.old.EntityNpcNagaMale;
|
|||||||
import noppes.npcs.entity.old.EntityNpcSkeleton;
|
import noppes.npcs.entity.old.EntityNpcSkeleton;
|
||||||
import noppes.npcs.scripted.wrapper.WrapperNpcAPI;
|
import noppes.npcs.scripted.wrapper.WrapperNpcAPI;
|
||||||
|
|
||||||
@Mod(modid = "customnpcs", name = "CustomNpcs", version = "1.3")
|
@Mod(modid = "customnpcs", name = "CustomNpcs", version = "1.3.1")
|
||||||
public class CustomNpcs {
|
public class CustomNpcs {
|
||||||
|
|
||||||
@ConfigProp(info = "Disable Chat Bubbles")
|
@ConfigProp(info = "Disable Chat Bubbles")
|
||||||
|
|||||||
@@ -87,7 +87,6 @@ public class DataDisplay {
|
|||||||
|
|
||||||
markovGeneratorId = new Random().nextInt(CustomNpcs.MARKOV_GENERATOR.length-1);
|
markovGeneratorId = new Random().nextInt(CustomNpcs.MARKOV_GENERATOR.length-1);
|
||||||
name = getRandomName();
|
name = getRandomName();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getRandomName() {
|
public String getRandomName() {
|
||||||
@@ -168,11 +167,16 @@ public class DataDisplay {
|
|||||||
disableLivingAnimation = nbttagcompound.getBoolean("NoLivingAnimation");
|
disableLivingAnimation = nbttagcompound.getBoolean("NoLivingAnimation");
|
||||||
showBossBar = nbttagcompound.getByte("BossBar");
|
showBossBar = nbttagcompound.getByte("BossBar");
|
||||||
|
|
||||||
invisibleToList.clear();
|
|
||||||
NBTTagList tagList = (NBTTagList)nbttagcompound.getTag("InvisibleToList");
|
NBTTagList tagList = (NBTTagList)nbttagcompound.getTag("InvisibleToList");
|
||||||
for(int i = 0; i < tagList.tagCount(); i++){
|
if(tagList != null) {
|
||||||
String nbtTagString = tagList.getStringTagAt(i);
|
invisibleToList.clear();
|
||||||
invisibleToList.add(UUID.fromString(nbtTagString));
|
for (int i = 0; i < tagList.tagCount(); i++) {
|
||||||
|
String nbtTagString = tagList.getStringTagAt(i);
|
||||||
|
invisibleToList.add(UUID.fromString(nbtTagString));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
invisibleToList = new ArrayList<>();
|
||||||
}
|
}
|
||||||
|
|
||||||
if(prevSkinType != skinType || !texture.equals(prevTexture))
|
if(prevSkinType != skinType || !texture.equals(prevTexture))
|
||||||
|
|||||||
@@ -76,11 +76,13 @@ public class DataTimers implements ITimers {
|
|||||||
Map<Integer, DataTimers.Timer> timers = new HashMap();
|
Map<Integer, DataTimers.Timer> timers = new HashMap();
|
||||||
NBTTagList list = compound.getTagList("NpcsTimers", 10);
|
NBTTagList list = compound.getTagList("NpcsTimers", 10);
|
||||||
|
|
||||||
for(int i = 0; i < list.tagCount(); ++i) {
|
if(list != null) {
|
||||||
NBTTagCompound c = list.getCompoundTagAt(i);
|
for (int i = 0; i < list.tagCount(); ++i) {
|
||||||
DataTimers.Timer t = new DataTimers.Timer(c.getInteger("ID"), c.getInteger("TimerTicks"), c.getBoolean("Repeat"));
|
NBTTagCompound c = list.getCompoundTagAt(i);
|
||||||
t.ticks = c.getInteger("Ticks");
|
DataTimers.Timer t = new DataTimers.Timer(c.getInteger("ID"), c.getInteger("TimerTicks"), c.getBoolean("Repeat"));
|
||||||
timers.put(t.id, t);
|
t.ticks = c.getInteger("Ticks");
|
||||||
|
timers.put(t.id, t);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.timers = timers;
|
this.timers = timers;
|
||||||
|
|||||||
Reference in new issue
Block a user