2014-04-18 23:22:44 +00:00
|
|
|
From 80b0379300d9010caf8a13499db2eb2746c6a614 Mon Sep 17 00:00:00 2001
|
2014-04-12 04:18:37 +00:00
|
|
|
From: md_5 <git@md-5.net>
|
|
|
|
Date: Tue, 28 Jan 2014 20:35:35 +1100
|
|
|
|
Subject: [PATCH] Allow Configuring Chunks per Packet
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/EntityPlayer.java b/src/main/java/net/minecraft/server/EntityPlayer.java
|
2014-04-18 23:15:23 +00:00
|
|
|
index 367472d..d5a5426 100644
|
2014-04-12 04:18:37 +00:00
|
|
|
--- a/src/main/java/net/minecraft/server/EntityPlayer.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/EntityPlayer.java
|
|
|
|
@@ -214,7 +214,7 @@ public class EntityPlayer extends EntityHuman implements ICrafting {
|
|
|
|
|
|
|
|
Chunk chunk;
|
|
|
|
|
|
|
|
- while (iterator1.hasNext() && arraylist.size() < PacketPlayOutMapChunkBulk.c()) {
|
|
|
|
+ while (iterator1.hasNext() && arraylist.size() < this.world.spigotConfig.maxBulkChunk) { // Spigot
|
|
|
|
ChunkCoordIntPair chunkcoordintpair = (ChunkCoordIntPair) iterator1.next();
|
|
|
|
|
|
|
|
if (chunkcoordintpair != null) {
|
|
|
|
diff --git a/src/main/java/org/spigotmc/SpigotWorldConfig.java b/src/main/java/org/spigotmc/SpigotWorldConfig.java
|
2014-04-18 23:22:44 +00:00
|
|
|
index 5c1d59c..744e1be 100644
|
2014-04-12 04:18:37 +00:00
|
|
|
--- a/src/main/java/org/spigotmc/SpigotWorldConfig.java
|
|
|
|
+++ b/src/main/java/org/spigotmc/SpigotWorldConfig.java
|
2014-04-18 23:22:44 +00:00
|
|
|
@@ -266,4 +266,11 @@ public class SpigotWorldConfig
|
2014-04-12 04:18:37 +00:00
|
|
|
enableZombiePigmenPortalSpawns = getBoolean( "enable-zombie-pigmen-portal-spawns", true );
|
|
|
|
log( "Allow Zombie Pigmen to spawn from portal blocks: " + enableZombiePigmenPortalSpawns );
|
|
|
|
}
|
|
|
|
+
|
|
|
|
+ public int maxBulkChunk;
|
|
|
|
+ private void bulkChunkCount()
|
|
|
|
+ {
|
|
|
|
+ maxBulkChunk = getInt( "max-bulk-chunks", 5 );
|
|
|
|
+ log( "Sending up to " + maxBulkChunk + " chunks per packet" );
|
|
|
|
+ }
|
|
|
|
}
|
|
|
|
--
|
2014-04-18 23:15:23 +00:00
|
|
|
1.9.1
|
2014-04-12 04:18:37 +00:00
|
|
|
|