Skip to content

Commit

Permalink
Fix JEID version check
Browse files Browse the repository at this point in the history
  • Loading branch information
Runemoro committed Jul 15, 2018
1 parent 9eebacf commit 2ee4547
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@
import net.minecraft.world.storage.WorldSummary;
import org.spongepowered.asm.mixin.Final;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Overwrite;
import org.spongepowered.asm.mixin.Shadow;

@Mixin(WorldSummary.class)
public class MixinWorldSummary {
@Shadow @Final private int versionId;

@Overwrite
public boolean askToOpenWorld() {
return versionId > 1343 && versionId != Integer.MAX_VALUE / 2;
}
Expand Down

0 comments on commit 2ee4547

Please sign in to comment.