mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-16 22:15:06 +00:00
Fixed getFormLevel not working when player form NBT is "pty". ScriptBlock now correctly sets its tile field, allowing players to access blocks as chests, crates, etc.
This commit is contained in:
1 parent
e5edbe002e
commit
e676c808e3
2 files changed
+6
-1
No files matched your search
@@ -475,7 +475,7 @@ public class ScriptDBCPlayer<T extends EntityPlayerMP> extends ScriptPlayer<T>{
|
||||
player.getEntityData().getCompoundTag("PlayerPersisted").setString("jrmcSSltX","TR"+level);
|
||||
}
|
||||
public int getFormLevel(){
|
||||
return Integer.parseInt(player.getEntityData().getCompoundTag("PlayerPersisted").getString("jrmcSSltX").replace("TR",""));
|
||||
return Integer.parseInt(player.getEntityData().getCompoundTag("PlayerPersisted").getString("jrmcSSltX").replace("TR","").replace("pty",""));
|
||||
}
|
||||
|
||||
public void setSkills(String skills){
|
||||
|
||||
Reference in new issue
Block a user