mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-17 08:45:11 +00:00
Removed "id" field from EnumAnimationPart
This commit is contained in:
1 parent
6c9b74ceb0
commit
5af8a15de7
3 files changed
+10
-16
No files matched your search
@@ -41,7 +41,7 @@ public class FramePart implements IFramePart {
|
||||
}
|
||||
|
||||
public int getPartId() {
|
||||
return part.id;
|
||||
return part.ordinal();
|
||||
}
|
||||
|
||||
public void setPart(EnumAnimationPart part) {
|
||||
@@ -58,7 +58,7 @@ public class FramePart implements IFramePart {
|
||||
|
||||
public IFramePart setPart(int partId) {
|
||||
for (EnumAnimationPart enumPart : EnumAnimationPart.values()) {
|
||||
if (enumPart.id == partId) {
|
||||
if (enumPart.ordinal() == partId) {
|
||||
this.setPart(enumPart);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user