Update SB's affectsSpawning API to use filters
Closes GH-169
This commit is contained in:
@@ -52,10 +52,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
public CraftPlayer(CraftServer server, EntityPlayer entity) {
|
||||
super(server, entity);
|
||||
@@ -0,0 +0,0 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
||||
public void setViewDistance(int viewDistance) {
|
||||
((WorldServer) getHandle().world).getPlayerChunkMap().updateViewDistance(getHandle(), viewDistance);
|
||||
}
|
||||
+
|
||||
|
||||
+ @Override
|
||||
+ public void setResourcePack(String url, String hash) {
|
||||
+ Validate.notNull(url, "Resource pack URL cannot be null");
|
||||
@@ -82,7 +81,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ this.resourcePackStatus = status;
|
||||
+ this.resourcePackHash = hash;
|
||||
+ }
|
||||
// Paper end
|
||||
|
||||
+
|
||||
// Spigot start
|
||||
private final Player.Spigot spigot = new Player.Spigot()
|
||||
{
|
||||
--
|
||||
Reference in New Issue
Block a user