mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-22 20:09:49 +00:00
Complete Manage Linked Items / NPCs
This commit is contained in:
1 parent
fdd47691ae
commit
030b44035e
7 files changed
+677
-271
No files matched your search
@@ -124,6 +124,10 @@ public enum EnumRequestPacket {
|
||||
LinkedGetAll,
|
||||
LinkedSet,
|
||||
LinkedGet,
|
||||
LinkedItemSave,
|
||||
LinkedItemRemove,
|
||||
LinkedItemBuild,
|
||||
LinkedItemScript,
|
||||
|
||||
BankGet,
|
||||
BanksGet,
|
||||
@@ -180,5 +184,6 @@ public enum EnumRequestPacket {
|
||||
EffectRemove,
|
||||
EffectSave,
|
||||
|
||||
ColorSet, LinkedItemSave, LinkedItemRemove, LinkedItemBuild, LinkedItemScript, ColorBrush
|
||||
ColorSet,
|
||||
ColorBrush
|
||||
}
|
||||
@@ -65,8 +65,6 @@ public final class LinkedItemSavePacket extends AbstractPacket {
|
||||
String prevName = ByteBufUtils.readString(in);
|
||||
LinkedItem linkedItem = new LinkedItem();
|
||||
linkedItem.readFromNBT(ByteBufUtils.readNBT(in));
|
||||
linkedItem.version++;
|
||||
|
||||
LinkedItemController.getInstance().saveLinkedItem(linkedItem);
|
||||
|
||||
if(!prevName.isEmpty() && !prevName.equals(linkedItem.name)){
|
||||
|
||||
Reference in new issue
Block a user