Fixed item frame & armor stand logging under Folia

This commit is contained in:
Intelli 2023-03-24 18:10:11 -06:00
parent 7170e29452
commit ace870b930
13 changed files with 95 additions and 75 deletions

View file

@ -1,7 +1,9 @@
package net.coreprotect.paper;
import org.bukkit.Location;
import org.bukkit.Server;
import org.bukkit.block.Sign;
import org.bukkit.entity.Entity;
import org.bukkit.inventory.Inventory;
import org.bukkit.inventory.InventoryHolder;
@ -62,4 +64,9 @@ public class PaperAdapter implements PaperInterface {
return sign.getLine(line);
}
@Override
public void teleportAsync(Entity entity, Location location) {
entity.teleport(location);
}
}

View file

@ -1,6 +1,8 @@
package net.coreprotect.paper;
import org.bukkit.Location;
import org.bukkit.Server;
import org.bukkit.entity.Entity;
public class PaperHandler extends PaperAdapter implements PaperInterface {
@ -9,4 +11,9 @@ public class PaperHandler extends PaperAdapter implements PaperInterface {
return server.isStopping();
}
@Override
public void teleportAsync(Entity entity, Location location) {
entity.teleportAsync(location);
}
}

View file

@ -1,7 +1,9 @@
package net.coreprotect.paper;
import org.bukkit.Location;
import org.bukkit.Server;
import org.bukkit.block.Sign;
import org.bukkit.entity.Entity;
import org.bukkit.inventory.Inventory;
import org.bukkit.inventory.InventoryHolder;
@ -13,4 +15,6 @@ public interface PaperInterface {
public String getLine(Sign sign, int line);
public void teleportAsync(Entity entity, Location location);
}