2014-12-14 21:54:10 +00:00
|
|
|
From 37e47d5757895e9ec2b1ee1443551792b1652444 Mon Sep 17 00:00:00 2001
|
2014-07-21 20:46:54 +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-12-14 21:54:10 +00:00
|
|
|
index d71a6ae..f2adc82 100644
|
2014-07-21 20:46:54 +00:00
|
|
|
--- a/src/main/java/net/minecraft/server/EntityPlayer.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/EntityPlayer.java
|
2014-11-28 01:17:45 +00:00
|
|
|
@@ -220,7 +220,7 @@ public class EntityPlayer extends EntityHuman implements ICrafting {
|
2014-07-21 20:46:54 +00:00
|
|
|
|
|
|
|
Chunk chunk;
|
|
|
|
|
2014-11-28 01:17:45 +00:00
|
|
|
- while (iterator1.hasNext() && arraylist.size() < 10) {
|
2014-07-21 20:46:54 +00:00
|
|
|
+ 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-11-28 01:17:45 +00:00
|
|
|
index 5c1d59c..93ab1c1 100644
|
2014-07-21 20:46:54 +00:00
|
|
|
--- a/src/main/java/org/spigotmc/SpigotWorldConfig.java
|
|
|
|
+++ b/src/main/java/org/spigotmc/SpigotWorldConfig.java
|
|
|
|
@@ -266,4 +266,11 @@ public class SpigotWorldConfig
|
|
|
|
enableZombiePigmenPortalSpawns = getBoolean( "enable-zombie-pigmen-portal-spawns", true );
|
|
|
|
log( "Allow Zombie Pigmen to spawn from portal blocks: " + enableZombiePigmenPortalSpawns );
|
|
|
|
}
|
|
|
|
+
|
|
|
|
+ public int maxBulkChunk;
|
|
|
|
+ private void bulkChunkCount()
|
|
|
|
+ {
|
2014-11-28 01:17:45 +00:00
|
|
|
+ maxBulkChunk = getInt( "max-bulk-chunks", 10 );
|
2014-07-21 20:46:54 +00:00
|
|
|
+ log( "Sending up to " + maxBulkChunk + " chunks per packet" );
|
|
|
|
+ }
|
|
|
|
}
|
|
|
|
--
|
2014-11-28 01:17:45 +00:00
|
|
|
2.1.0
|
2014-07-21 20:46:54 +00:00
|
|
|
|