mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-28 19:54:44 +02:00
mcMMO will no longer use the DamageModifier API (potentially fix immortal player bug)
This commit is contained in:
@ -32,11 +32,7 @@ public abstract class MajorMinorPatchVersion implements Versioned {
|
||||
this.majorVersion = majorVersion;
|
||||
this.minorVersion = minorVersion;
|
||||
|
||||
if(patchVersion == null) {
|
||||
this.patchVersion = new SimpleNumericVersion(0);
|
||||
} else {
|
||||
this.patchVersion = patchVersion;
|
||||
}
|
||||
this.patchVersion = Objects.requireNonNullElseGet(patchVersion, () -> new SimpleNumericVersion(0));
|
||||
}
|
||||
|
||||
public MajorMinorPatchVersion(int majorVerNumber, int minorVerNumber, int patchVerNumber) {
|
||||
|
Reference in New Issue
Block a user