SPIGOT-5015: Players in spectator mode prevent block placement and block projectiles

This commit is contained in:
md_5 2019-06-02 19:51:26 +10:00
parent fa71719350
commit 043d31deb0
4 changed files with 5 additions and 5 deletions

View File

@ -645,8 +645,8 @@
blockposition = worldserver1.getHighestBlockYAt(HeightMap.Type.MOTION_BLOCKING_NO_LEAVES, worldserver1.getSpawn()); blockposition = worldserver1.getHighestBlockYAt(HeightMap.Type.MOTION_BLOCKING_NO_LEAVES, worldserver1.getSpawn());
} else if (dimensionmanager == DimensionManager.THE_END) { } else if (dimensionmanager == DimensionManager.THE_END) {
@@ -2039,6 +2393,25 @@ @@ -2039,6 +2393,25 @@
vec3d = shapedetector_c.b; vec3d = shapedetector_shape.velocity;
f = (float) shapedetector_c.c; f = (float) shapedetector_shape.yaw;
} }
+ } // CraftBukkit + } // CraftBukkit
+ +

View File

@ -450,4 +450,4 @@
+ return true; // CraftBukkit + return true; // CraftBukkit
} }
public abstract boolean isSpectator(); @Override

View File

@ -114,7 +114,7 @@
+ return nbttagcompound == null ? null : this.getChunkData(this.world.getWorldProvider().getDimensionManager(), this.m, nbttagcompound, chunkcoordintpair, world); // CraftBukkit + return nbttagcompound == null ? null : this.getChunkData(this.world.getWorldProvider().getDimensionManager(), this.m, nbttagcompound, chunkcoordintpair, world); // CraftBukkit
} }
boolean d(ChunkCoordIntPair chunkcoordintpair) { boolean isOutsideOfRange(ChunkCoordIntPair chunkcoordintpair) {
@@ -1052,7 +1056,7 @@ @@ -1052,7 +1056,7 @@
public final Set<EntityPlayer> trackedPlayers = Sets.newHashSet(); public final Set<EntityPlayer> trackedPlayers = Sets.newHashSet();

View File

@ -186,7 +186,7 @@ public final class CraftMagicNumbers implements UnsafeValues {
* @return string * @return string
*/ */
public String getMappingsVersion() { public String getMappingsVersion() {
return "c31c513e1fa6657aacbd4facd394c5b0"; return "df689a0f36ee29c2b2f456da8803f74d";
} }
@Override @Override