geforkt von Mirrors/Paper
Updated Upstream (CraftBukkit/Spigot) (#5169)
Dieser Commit ist enthalten in:
Ursprung
c07b432618
Commit
0677694e78
@ -166,4 +166,4 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+ }
|
+ }
|
||||||
// Paper end
|
// Paper end
|
||||||
|
|
||||||
private final Spigot spigot = new Spigot()
|
// Spigot start
|
||||||
|
@ -11,8 +11,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
--- a/src/main/java/net/minecraft/server/ChunkMapDistance.java
|
--- a/src/main/java/net/minecraft/server/ChunkMapDistance.java
|
||||||
+++ b/src/main/java/net/minecraft/server/ChunkMapDistance.java
|
+++ b/src/main/java/net/minecraft/server/ChunkMapDistance.java
|
||||||
@@ -0,0 +0,0 @@ public abstract class ChunkMapDistance {
|
@@ -0,0 +0,0 @@ public abstract class ChunkMapDistance {
|
||||||
long i = sectionposition.r().pair();
|
|
||||||
ObjectSet<EntityPlayer> objectset = (ObjectSet) this.c.get(i);
|
ObjectSet<EntityPlayer> objectset = (ObjectSet) this.c.get(i);
|
||||||
|
if (objectset == null) return; // CraftBukkit - SPIGOT-6208
|
||||||
|
|
||||||
- objectset.remove(entityplayer);
|
- objectset.remove(entityplayer);
|
||||||
- if (objectset.isEmpty()) {
|
- if (objectset.isEmpty()) {
|
||||||
|
@ -443,10 +443,10 @@ diff --git a/src/main/java/org/spigotmc/ActivationRange.java b/src/main/java/org
|
|||||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||||
--- a/src/main/java/org/spigotmc/ActivationRange.java
|
--- a/src/main/java/org/spigotmc/ActivationRange.java
|
||||||
+++ b/src/main/java/org/spigotmc/ActivationRange.java
|
+++ b/src/main/java/org/spigotmc/ActivationRange.java
|
||||||
@@ -0,0 +0,0 @@ package org.spigotmc;
|
@@ -0,0 +0,0 @@
|
||||||
|
package org.spigotmc;
|
||||||
|
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.List;
|
|
||||||
+
|
+
|
||||||
+import net.minecraft.server.Activity;
|
+import net.minecraft.server.Activity;
|
||||||
import net.minecraft.server.AxisAlignedBB;
|
import net.minecraft.server.AxisAlignedBB;
|
||||||
@ -634,7 +634,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
*/
|
*/
|
||||||
private static void activateChunkEntities(Chunk chunk)
|
private static void activateChunkEntities(Chunk chunk)
|
||||||
{
|
{
|
||||||
- for ( List<Entity> slice : chunk.entitySlices )
|
- for ( java.util.List<Entity> slice : chunk.entitySlices )
|
||||||
- {
|
- {
|
||||||
- for ( Entity entity : (Collection<Entity>) slice )
|
- for ( Entity entity : (Collection<Entity>) slice )
|
||||||
+ // Paper start
|
+ // Paper start
|
||||||
|
@ -158,9 +158,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+ }
|
+ }
|
||||||
+ // Paper end
|
+ // Paper end
|
||||||
+
|
+
|
||||||
|
// Spigot start
|
||||||
private final Spigot spigot = new Spigot()
|
private final Spigot spigot = new Spigot()
|
||||||
{
|
{
|
||||||
|
|
||||||
diff --git a/src/main/java/org/spigotmc/TicksPerSecondCommand.java b/src/main/java/org/spigotmc/TicksPerSecondCommand.java
|
diff --git a/src/main/java/org/spigotmc/TicksPerSecondCommand.java b/src/main/java/org/spigotmc/TicksPerSecondCommand.java
|
||||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||||
--- a/src/main/java/org/spigotmc/TicksPerSecondCommand.java
|
--- a/src/main/java/org/spigotmc/TicksPerSecondCommand.java
|
||||||
|
@ -40,34 +40,6 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
import java.net.InetAddress;
|
import java.net.InetAddress;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
@@ -0,0 +0,0 @@ import net.minecraft.server.EntityAnimal;
|
|
||||||
import net.minecraft.server.EntityAreaEffectCloud;
|
|
||||||
import net.minecraft.server.EntityDamageSource;
|
|
||||||
import net.minecraft.server.EntityDamageSourceIndirect;
|
|
||||||
-import net.minecraft.server.EntityEnderCrystal;
|
|
||||||
import net.minecraft.server.EntityEnderDragon;
|
|
||||||
import net.minecraft.server.EntityExperienceOrb;
|
|
||||||
import net.minecraft.server.EntityFireworks;
|
|
||||||
@@ -0,0 +0,0 @@ import net.minecraft.server.EntityVillager;
|
|
||||||
import net.minecraft.server.EntityWaterAnimal;
|
|
||||||
import net.minecraft.server.EnumDirection;
|
|
||||||
import net.minecraft.server.EnumHand;
|
|
||||||
-import net.minecraft.server.EnumItemSlot;
|
|
||||||
import net.minecraft.server.Explosion;
|
|
||||||
import net.minecraft.server.GeneratorAccess;
|
|
||||||
import net.minecraft.server.IBlockData;
|
|
||||||
-import net.minecraft.server.IChatBaseComponent;
|
|
||||||
import net.minecraft.server.IInventory;
|
|
||||||
import net.minecraft.server.IProjectile;
|
|
||||||
import net.minecraft.server.ItemActionContext;
|
|
||||||
@@ -0,0 +0,0 @@ import net.minecraft.server.Unit;
|
|
||||||
import net.minecraft.server.World;
|
|
||||||
import net.minecraft.server.WorldServer;
|
|
||||||
import org.bukkit.Bukkit;
|
|
||||||
-import org.bukkit.Location;
|
|
||||||
import org.bukkit.Material;
|
|
||||||
import org.bukkit.NamespacedKey;
|
|
||||||
import org.bukkit.Server;
|
|
||||||
@@ -0,0 +0,0 @@ import org.bukkit.entity.ThrownPotion;
|
@@ -0,0 +0,0 @@ import org.bukkit.entity.ThrownPotion;
|
||||||
import org.bukkit.entity.Vehicle;
|
import org.bukkit.entity.Vehicle;
|
||||||
import org.bukkit.entity.Villager;
|
import org.bukkit.entity.Villager;
|
||||||
@ -76,22 +48,6 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
import org.bukkit.event.Cancellable;
|
import org.bukkit.event.Cancellable;
|
||||||
import org.bukkit.event.Event;
|
import org.bukkit.event.Event;
|
||||||
import org.bukkit.event.Event.Result;
|
import org.bukkit.event.Event.Result;
|
||||||
@@ -0,0 +0,0 @@ import org.bukkit.event.entity.EntityDeathEvent;
|
|
||||||
import org.bukkit.event.entity.EntityEnterLoveModeEvent;
|
|
||||||
import org.bukkit.event.entity.EntityPickupItemEvent;
|
|
||||||
import org.bukkit.event.entity.EntityPlaceEvent;
|
|
||||||
-import org.bukkit.event.entity.EntityPortalEvent;
|
|
||||||
import org.bukkit.event.entity.EntityPotionEffectEvent;
|
|
||||||
import org.bukkit.event.entity.EntityShootBowEvent;
|
|
||||||
import org.bukkit.event.entity.EntitySpawnEvent;
|
|
||||||
@@ -0,0 +0,0 @@ import org.bukkit.inventory.EquipmentSlot;
|
|
||||||
import org.bukkit.inventory.InventoryView;
|
|
||||||
import org.bukkit.inventory.meta.BookMeta;
|
|
||||||
import org.bukkit.potion.PotionEffect;
|
|
||||||
-import org.bukkit.projectiles.ProjectileSource;
|
|
||||||
|
|
||||||
import org.bukkit.event.entity.SpawnerSpawnEvent; // Spigot
|
|
||||||
|
|
||||||
@@ -0,0 +0,0 @@ public class CraftEventFactory {
|
@@ -0,0 +0,0 @@ public class CraftEventFactory {
|
||||||
|
|
||||||
return event;
|
return event;
|
||||||
|
@ -687,9 +687,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
ignoreVanillaPermissions = commandsConfiguration.getBoolean("ignore-vanilla-permissions");
|
ignoreVanillaPermissions = commandsConfiguration.getBoolean("ignore-vanilla-permissions");
|
||||||
|
|
||||||
@@ -0,0 +0,0 @@ public final class CraftServer implements Server {
|
@@ -0,0 +0,0 @@ public final class CraftServer implements Server {
|
||||||
{
|
|
||||||
return spigot;
|
return spigot;
|
||||||
}
|
}
|
||||||
|
// Spigot end
|
||||||
+
|
+
|
||||||
+ // Paper start
|
+ // Paper start
|
||||||
+ @SuppressWarnings({"rawtypes", "unchecked"})
|
+ @SuppressWarnings({"rawtypes", "unchecked"})
|
||||||
|
@ -42,9 +42,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+ this.tileEntityListTick.remove(tileTickPosition--);
|
+ this.tileEntityListTick.remove(tileTickPosition--);
|
||||||
+ continue;
|
+ continue;
|
||||||
+ // Paper end
|
+ // Paper end
|
||||||
}
|
// Spigot start
|
||||||
// Spigot start
|
} finally {
|
||||||
finally {
|
tileentity.tickTimer.stopTiming();
|
||||||
@@ -0,0 +0,0 @@ public abstract class World implements GeneratorAccess, AutoCloseable {
|
@@ -0,0 +0,0 @@ public abstract class World implements GeneratorAccess, AutoCloseable {
|
||||||
try {
|
try {
|
||||||
consumer.accept(entity);
|
consumer.accept(entity);
|
||||||
|
@ -135,7 +135,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+ }
|
+ }
|
||||||
|
|
||||||
- // Kick all players
|
- // Kick all players
|
||||||
- for ( EntityPlayer p : (List< EntityPlayer>) MinecraftServer.getServer().getPlayerList().players )
|
- for ( EntityPlayer p : (List<EntityPlayer>) MinecraftServer.getServer().getPlayerList().players )
|
||||||
- {
|
- {
|
||||||
- p.playerConnection.disconnect(SpigotConfig.restartMessage);
|
- p.playerConnection.disconnect(SpigotConfig.restartMessage);
|
||||||
- }
|
- }
|
||||||
|
@ -1921,7 +1921,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
-
|
-
|
||||||
- String name = "Task: " + plugin + " Runnable: " + taskname;
|
- String name = "Task: " + plugin + " Runnable: " + taskname;
|
||||||
- if (period > 0) {
|
- if (period > 0) {
|
||||||
- name += "(interval:" + period +")";
|
- name += "(interval:" + period + ")";
|
||||||
- } else {
|
- } else {
|
||||||
- name += "(Single)";
|
- name += "(Single)";
|
||||||
- }
|
- }
|
||||||
@ -2120,12 +2120,13 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+
|
+
|
||||||
+import co.aikar.timings.NullTimingHandler;
|
+import co.aikar.timings.NullTimingHandler;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
-import org.bukkit.craftbukkit.SpigotTimings; // Spigot
|
|
||||||
-import org.spigotmc.CustomTimingsHandler; // Spigot
|
|
||||||
+import co.aikar.timings.MinecraftTimings; // Paper
|
+import co.aikar.timings.MinecraftTimings; // Paper
|
||||||
+import co.aikar.timings.Timing; // Paper
|
+import co.aikar.timings.Timing; // Paper
|
||||||
import org.bukkit.plugin.Plugin;
|
import org.bukkit.plugin.Plugin;
|
||||||
import org.bukkit.scheduler.BukkitTask;
|
import org.bukkit.scheduler.BukkitTask;
|
||||||
|
-import org.bukkit.craftbukkit.SpigotTimings; // Spigot
|
||||||
|
import org.spigotmc.CustomTimingsHandler; // Spigot
|
||||||
|
|
||||||
|
|
||||||
@@ -0,0 +0,0 @@ public class CraftTask implements BukkitTask, Runnable { // Spigot
|
@@ -0,0 +0,0 @@ public class CraftTask implements BukkitTask, Runnable { // Spigot
|
||||||
*/
|
*/
|
||||||
|
@ -36,7 +36,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
if ( entity instanceof EntityPlayer )
|
if ( entity instanceof EntityPlayer )
|
||||||
{
|
{
|
||||||
return config.playerTrackingRange;
|
return config.playerTrackingRange;
|
||||||
- } else if ( entity.activationType == ActivationRange.ActivationType.MONSTER || entity.activationType == ActivationRange.ActivationType.RAIDER )
|
- } else if ( entity.activationType == ActivationRange.ActivationType.MONSTER || entity.activationType == ActivationRange.ActivationType.RAIDER )
|
||||||
- {
|
- {
|
||||||
- return config.monsterTrackingRange;
|
- return config.monsterTrackingRange;
|
||||||
- } else if ( entity instanceof EntityGhast )
|
- } else if ( entity instanceof EntityGhast )
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 8049146227e4f8e44013f6b825ee91bdc7e3290f
|
Subproject commit c631fe557977348f9e8a82bfc168d61584cdc1b0
|
@ -1 +1 @@
|
|||||||
Subproject commit 89d6047d1aea78b9011ba38681663780a63233c9
|
Subproject commit 138d451b0c61bdc079b46e398ba4dfdc4bd6a233
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren