mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-24 18:44:26 +00:00
Trim comments
This commit is contained in:
1 parent
f175e3fb82
commit
98c94bd406
32 files changed
+13
-137
No files matched your search
@@ -25,10 +25,7 @@ public class VersionCompatibility {
|
||||
compound.setInteger("AimType", !aimShot ? 0 : 1);
|
||||
}
|
||||
|
||||
// Fire projectiles used to ignite unconditionally. The ignite check now also requires
|
||||
// pBurnItem, which reads false when the key is absent, so restore it for anything
|
||||
// saved before the flag existed. Shipped alongside revision 23, so anything already
|
||||
// at 23 was written by a build that had the flag.
|
||||
// Restore burning on Fire projectiles saved before pBurnItem existed
|
||||
if (compound.hasKey("pEffect") && !compound.hasKey("pBurnItem")) {
|
||||
if (EnumPotionType.fromOrdinal(compound.getInteger("pEffect")) == EnumPotionType.Fire) {
|
||||
compound.setBoolean("pBurnItem", true);
|
||||
|
||||
Reference in new issue
Block a user