Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent obsidian platform generate in The End #787

Merged
merged 5 commits into from
Jan 8, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ public void onPlayerPortal(PlayerPortalEvent event) {
event.setCancelled(true);
return;
}
location.setY(location.getY() + 1);
event.setCanCreatePortal(false);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
event.setCanCreatePortal(false);
if(XMaterial.supports(16)) event.setCanCreatePortal(false);

We could do this to try maintain 1.15- This wont fix the obsidian platform for 1.15, but atleast it will still be somewhat supported

Copy link
Contributor Author

@DreamVoid DreamVoid Jan 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Original code even doesn't support 1.16- ¯_(ツ)_/¯
Because java.lang.NoSuchFieldError: NETHER_WASTES
So I also fix this.

event.setTo(location);
}
});
Expand Down
Loading