mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
Added spawn-protection property to server.properties
This commit is contained in:
1 parent
814c9d444f
commit
fbe54b05f4
4 files changed
+12
-10
No files matched your search
@@ -325,7 +325,7 @@ public class NetServerHandler extends NetHandler implements ICommandListener {
|
||||
// CraftBukkit end
|
||||
|
||||
if (packet14blockdig.e == 0) {
|
||||
if (j1 > 16 || flag) {
|
||||
if (j1 > this.d.spawnProtection || flag) {
|
||||
// CraftBukkit start
|
||||
if(blockId > 0) {
|
||||
BlockDamageEvent event;
|
||||
@@ -354,7 +354,7 @@ public class NetServerHandler extends NetHandler implements ICommandListener {
|
||||
}
|
||||
// CraftBukkit end
|
||||
} else if (packet14blockdig.e == 1) {
|
||||
if (j1 > 16 || flag) {
|
||||
if (j1 > this.d.spawnProtection || flag) {
|
||||
// CraftBukkit start
|
||||
BlockDamageEvent event;
|
||||
// If the amount of damage going to the block plus the current amount
|
||||
|
||||
Reference in new issue
Block a user