Commit graph

624 commits

Author SHA1 Message Date
Spigot
72cde1fd01 Upstream merge
By: md_5 <git@md-5.net>
2013-12-18 17:48:18 +11:00
Spigot
be8c216be7 Invert command complete check
By: md_5 <git@md-5.net>
2013-12-18 17:24:24 +11:00
Spigot
0b64be883f Log Cause of Unexpected Exceptions
By: md_5 <git@md-5.net>
2013-12-18 13:39:28 +11:00
Spigot
a8fee4cba9 Fire PreLogin Events in Offline Mode
By: md_5 <git@md-5.net>
2013-12-18 13:32:30 +11:00
Spigot
823793d899 Add VanillaCommandWrapper which allows use of vanilla commands instead of Bukkit's versions
By: Thinkofdeath <thethinkofdeath@gmail.com>
2013-12-17 13:56:38 +00:00
Spigot
6eb0be4005 Remove references to chunklist
Commit c576054539790bdeb35285f62863d74b48c0782d removed the chunklist collection stored in ChunkProviderServer, however it has been partially restored in some places by 7e1ac0a77129b169704c1e222ff2deb3ab6cd2d2.  As not all references to this were restored, this has caused the chunklist and chunks collections to become out of sync, resulting in a memory leak.

By: frymaster <frymaster@12700.org>
2013-12-18 09:29:51 +11:00
Spigot
1b7eeff884 Revert processed disconnect change - the flag is not set as reliably as it was in previous server versions.
By: md_5 <git@md-5.net>
2013-12-18 08:44:28 +11:00
Spigot
367452637f Use the processedDisconnect flag for disconnects. This means that we will only say the player has disconnected once the server tick look has processed them as such. Fixes some issues with players quitting during join.
By: md_5 <git@md-5.net>
2013-12-17 18:25:05 +11:00
Spigot
90d8ee9bea Allow Bungee to pass through UUIDs. This will be added to bungee in a few days, so people get a chance to update Spigot first.
By: md_5 <git@md-5.net>
2013-12-16 22:39:18 +11:00
Spigot
31a53ff7dd Delay creation of serverconnection until needed so that our settings can take effect.
By: md_5 <git@md-5.net>
2013-12-16 11:47:23 +11:00
Spigot
33386be72f Don't box / rebox on object addition
By: md_5 <git@md-5.net>
2013-12-14 19:50:33 +11:00
Spigot
a6351f2271 Add an attempt at backwards compatability for (broken) NMS plugins. Also set negative no entry values as these cannot occur.
cc @aadnk

By: md_5 <git@md-5.net>
2013-12-14 19:48:13 +11:00
Spigot
5cd48cf621 Merge in some stuff
By: md_5 <git@md-5.net>
2013-12-14 17:58:22 +11:00
Spigot
098db09224 Prevent Mineshaft Structure Saving.
There is very little reason to keep track of Mineshafts as the only persistent behaviour within them is through the use of mob spawners, which are of course stored within the map itself. As such we can disable them from being saved, indefinitely, until there is reason to do so.

By: md_5 <git@md-5.net>
2013-12-13 15:22:51 +11:00
Spigot
1b918f4450 Configurable Amount of Netty Threads, defaulting to 4
This brings back the option that the Spigot version of netty saw. By default Netty will try and use cores*2 threads, however if running multiple servers on the same machine, this can be too many threads. Additionally some people have 16 core servers. If 32 Netty threads are allowed in this setup, then the lock contention, and thus blocking between threads becomes much greater, leading to decreased performance.

By: md_5 <git@md-5.net>
2013-12-13 11:59:09 +11:00
Spigot
6858924931 *aggression
By: md_5 <git@md-5.net>
2013-12-13 11:54:00 +11:00
Spigot
d8325893c7 Allow Disabling Zombie Villager Agression.
Useful for larger servers who want a nice performance boost at the expense of a little bit of gameplay mechanic changes. I believe this brings the mechanics of zombie vs villager back in line with 1.5.

By: md_5 <git@md-5.net>
2013-12-13 11:48:56 +11:00
Spigot
ec82d3b06b Optimize DataWatcher
Use primitive orientated collections, as well as more effective copies across collections.

By: md_5 <git@md-5.net>
2013-12-13 11:45:53 +11:00
Spigot
9a3140c935 Split out the configuration of engine modes 1 and 2 to eliminate the block lag seen when mining stone or wood and using engine mode 1.
Now we maintain a new list of blocks to replace with ores in engine mode 2, to ensure that we only update when players mine blocks that are potentially not an ore. We could perhaps even elimate this slight lag from mode 2 by reducing the need for calling update(x,y,z)

By: md_5 <git@md-5.net>
2013-12-13 11:28:47 +11:00
Spigot
9f9133e482 Pop anti xray patch to top
By: md_5 <git@md-5.net>
2013-12-13 11:10:33 +11:00
Spigot
b8bcd2ec69 Fix new lines break URL matching
By: Thinkofdeath <thethinkofdeath@gmail.com>
2013-12-11 18:09:41 +00:00
Spigot
d024ff3570 Fix Orebfuscator
By: Thinkofdeath <thethinkofdeath@gmail.com>
2013-12-11 09:37:27 +00:00
Spigot
130d646157 Bring bungee support back in line with what the protocol update had
By: md_5 <md_5@live.com.au>
2013-12-11 11:25:32 +11:00
Spigot
4761aaf833 Upstream merge
By: md_5 <md_5@live.com.au>
2013-12-10 09:36:25 +11:00
Spigot
17ee35372b Fix the "Faster UUID for entities" patch (Fixes #81)
By: Thinkofdeath <thethinkofdeath@gmail.com>
2013-12-09 16:19:26 +00:00
Spigot
0e7e70dccb Fix TNT crashing servers when breaking item frames
By: TheUnnamedDude <kevin.sillerud@gmail.com>
2013-12-09 11:37:51 +00:00
Spigot
1b892806b8 Fix a possible error with links
By: Thinkofdeath <thethinkofdeath@gmail.com>
2013-12-09 10:38:44 +00:00
Spigot
a6e7c7a91e Upstream merge
By: md_5 <md_5@live.com.au>
2013-12-09 18:00:58 +11:00
Spigot
987080283a Remove OS X Special Chars from Signs
By: md_5 <md_5@live.com.au>
2013-12-08 16:52:54 +11:00
Spigot
6c25641115 Fix crash caused by tnt destroying item frames
By: md_5 <md_5@live.com.au>
2013-12-06 20:32:13 +11:00
Spigot
320a37f9d5 Fix Jungle Tree Generation
By: md_5 <md_5@live.com.au>
2013-12-06 17:17:16 +11:00
Spigot
a4f5d8752a Fix Jungle Tree Generation
By: md_5 <md_5@live.com.au>
2013-12-06 17:16:42 +11:00
Spigot
9c9293377a Allow Teleportation of Vehicles and Passengers
By: ItsHarry <info@itsjerryandharry.com>
2013-12-05 21:59:53 +01:00
Spigot
c9d51dff33 Fire EntityDamageByEntityEvent for ItemFrames. This allows them to be protected more effectively.
By: md_5 <md_5@live.com.au>
2013-12-05 18:41:50 +11:00
Spigot
da70799bc2 Dont let commands run async
By: md_5 <md_5@live.com.au>
2013-12-05 16:57:01 +11:00
Spigot
d5ccd44b77 Duplicate Disconnect Prevention. In 1.7 mojang removed the this.disconnected flag. We add it back to prevent users from forcibly disconnecting themselves in a short amount of time.
By: md_5 <md_5@live.com.au>
2013-12-05 16:33:50 +11:00
Spigot
6a269ffdfc Fix broken async chat. Since Mojang introduced netty, but removed async packet handling, there are now only a few threads available to consume packets. Unfortunately we now have to maintain async chat support. In order to allow Async events to not kill these precious few threads, we do what we did in our Netty implementation, and offload these to their own, decoupled thread pool.
By: md_5 <md_5@live.com.au>
2013-12-05 13:57:12 +11:00
Spigot
50bfdebcde Fix color codes breaking urls
By: Thinkofdeath <thethinkofdeath@gmail.com>
2013-12-04 14:41:40 +00:00
Spigot
d908152b5e Fix shade fix accidentally being unmerged
By: md_5 <md_5@live.com.au>
2013-12-04 19:57:08 +11:00
Spigot
fc18b31f67 Take random light updates option into account before relighting a chunk on its first tick.
By: md_5 <md_5@live.com.au>
2013-12-03 15:51:04 +11:00
Spigot
e89a8b6916 Address some chunk gen speed issues - see below for current reasoning.
As of 1.7, Mojang added a check to make sure that only chunks which have been lit are sent to the client. Unfortunately this interferes with our modified chunk ticking algorithm, which will only tick chunks distant from the player on a very infrequent basis. We cannot unfortunately do this lighting stage during chunk gen as it appears to put a lot more noticeable load on the server, than when it is done at play time. For now at least we will simply send all chunks, in accordance with pre 1.7 behaviour.

By: md_5 <md_5@live.com.au>
2013-12-03 15:43:02 +11:00
Spigot
739f396eba Upstream merge
By: md_5 <md_5@live.com.au>
2013-12-03 15:13:39 +11:00
Spigot
223fa04f6f Fix Huge Mushroom Caps
By: md_5 <md_5@live.com.au>
2013-12-03 11:28:39 +11:00
Spigot
c575b39624 [Bukkit Bug] Clear flower pots on drop so that they are not dropped twice.
By: md_5 <md_5@live.com.au>
2013-12-03 11:08:07 +11:00
Spigot
68809545f3 Fix some chunks not being sent to the client
By: Thinkofdeath <thethinkofdeath@gmail.com>
2013-12-02 23:44:13 +00:00
Spigot
81d4061dca Remove spurious patch going into final repo
By: md_5 <md_5@live.com.au>
2013-12-03 10:19:35 +11:00
Spigot
534e2d536d Actually fix division by 0 in growth
By: md_5 <md_5@live.com.au>
2013-12-03 09:05:49 +11:00
Spigot
9b902e4a4c Update maven shade plugin so that newer maven versions (ie travis) will compile.
By: md_5 <md_5@live.com.au>
2013-12-03 08:21:58 +11:00
Spigot
2a1fcf3461 Upstream merge
By: md_5 <md_5@live.com.au>
2013-12-03 08:21:46 +11:00
Spigot
e6a3002858 Prevent crash from division by 0 in growth rates
By: Dmck2b <dmck2b+github@gmail.com>
2013-12-03 08:14:39 +11:00