Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/folia' into folia
Browse files Browse the repository at this point in the history
  • Loading branch information
CoPokBl committed Jun 21, 2024
2 parents 4f2696a + 2acd27e commit 264450c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/net/serble/estools/Commands/Back.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public void executeEvent(EsEvent event) {
if (event instanceof EsPlayerTeleportEvent) {
EsPlayerTeleportEvent e = (EsPlayerTeleportEvent) event;
if (Main.minecraftVersion.getMinor() > 9 &&
!equalsOr(e.getCause(), EsTeleportCause.Command, EsTeleportCause.Plugin)) {
!equalsOr(e.getCause(), EsTeleportCause.Command, EsTeleportCause.Plugin, EsTeleportCause.Unknown)) {
return;
}
prevLocations.put(e.getPlayer().getUniqueId(), e.getPlayer().getLocation());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public EsInventory getBottomInventory() {

@Override
public EsInventory getInventory(int slot) {
if (Main.minecraftVersion.getMinor() <= 7) { // .getInventory(slot) doesn't exist
if (Main.minecraftVersion.getMinor() <= 10) { // .getInventory(slot) doesn't exist
if (slot >= getTopInventory().getSize()) { // Bottom inv
return getBottomInventory();
}
Expand Down

0 comments on commit 264450c

Please sign in to comment.