mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-19 06:09:05 +00:00
Add TagController Spacing
This commit is contained in:
1 parent
4302ac4a2b
commit
891a3101c9
1 file changed
+3
@@ -84,6 +84,7 @@ public class TagController implements ITagHandler {
|
||||
}
|
||||
this.tags = tags;
|
||||
}
|
||||
|
||||
public NBTTagCompound getNBT(){
|
||||
NBTTagList list = new NBTTagList();
|
||||
for(int slot : tags.keySet()){
|
||||
@@ -97,6 +98,7 @@ public class TagController implements ITagHandler {
|
||||
nbttagcompound.setTag("NPCTags", list);
|
||||
return nbttagcompound;
|
||||
}
|
||||
|
||||
public void saveTags(){
|
||||
try {
|
||||
File saveDir = CustomNpcs.getWorldSaveDirectory();
|
||||
@@ -171,6 +173,7 @@ public class TagController implements ITagHandler {
|
||||
lastUsedID++;
|
||||
return lastUsedID;
|
||||
}
|
||||
|
||||
public ITag delete(int id) {
|
||||
if (id >= 0 && this.tags.size() > 1) {
|
||||
Tag tag = (Tag)this.tags.remove(id);
|
||||
|
||||
Reference in new issue
Block a user