mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-27 04:55:47 +01:00
SPIGOT-5015: Players in spectator mode prevent block placement and block projectiles
This commit is contained in:
parent
fa71719350
commit
043d31deb0
@ -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
|
||||||
+
|
+
|
||||||
|
@ -450,4 +450,4 @@
|
|||||||
+ return true; // CraftBukkit
|
+ return true; // CraftBukkit
|
||||||
}
|
}
|
||||||
|
|
||||||
public abstract boolean isSpectator();
|
@Override
|
||||||
|
@ -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();
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user