Commit graph

35 commits

Author SHA1 Message Date
Aikar
80dcb6c4a3 Optimize BlockStateList/BlockData
Mojang included some sanity checks on arguments passed to the BlockData.
This code results in the Hash look up occuring twice per call, one to test if it exists
and another to retrieve the result.

This code should ideally never be hit, unless mojang released a bad build. We can discover bugs with this as furthur code that never expects a null
would then NPE, so it would not result in hidden issues.

This is super hot code, so removing those checks should give decent gains.
2016-03-18 19:25:43 -04:00
Zach Brown
14d5dba144 Upstream changes 2016-03-17 23:29:51 -05:00
Zach Brown
59ca434484 Someone questioned my professionality today 2016-03-16 02:57:49 -05:00
Riley Park
a80a692e2b Add more complete resource pack API 2016-03-08 22:23:59 -08:00
Aikar
a1403cb641 Disable Scoreboards for non players by default
Entities collision is checking for scoreboards setting.
This is very heavy to do map lookups for every collision to check
this setting.

So avoid looking up scoreboards and short circuit to the "not on a team"
logic which is most likely to be true.
2016-03-08 23:42:08 -05:00
Aikar
627ccd793f Optimize NavigationListener Iteration
I don't know what the person who wrote that code was smoking, but I
don't think it was good.

Gets rid of the WeakHashMap that mojang was abusing purely to be lazy
on clean up, and handles registering and deregistering navigation
upon world add/remove operations.
2016-03-07 22:59:12 -05:00
Techcable
d78781c869 Re-add BlocksPos inlining patch 2016-03-07 16:00:29 -06:00
Zach Brown
26eb457a39 Paper 1.9 2016-02-29 17:09:49 -06:00
Jedediah Smith
d498084c93 Player Tab List and Title APIs 2016-02-16 19:55:21 -06:00
Thinkofdeath
d3809b12af Fix Furnace Minecarts losing all of their velocity on corners 2016-02-15 23:19:18 -06:00
Aikar
720abf5ab8 Optimize Pathfinding 2016-02-13 19:25:23 -06:00
Techcable
aea26a3f89 Speedup BlockPos by fixing inlining 2016-01-29 03:26:31 -06:00
Zach Brown
b57d9f9638 Add an option to disable chest's detection of Ocelots/Cats 2016-01-10 20:47:21 -06:00
Iceee
19d4a47c33 Fix lava/water some times creating air instead of cobblestone 2015-08-04 17:57:17 -07:00
Zach Brown
fd378c06e5 Update PaperSpigot to 1.8.8 2015-07-27 17:26:21 -05:00
Byteflux
c17ecdd93f Nerfed spawner mobs should use PathfinderGoalFloat to swim if available 2015-07-14 10:51:38 -07:00
Byteflux
e285ca5c92 Add generator settings from Paper 1.7
As of 1.8, it is possible to customize worlds beyond what these settings
allow using a Customized world type, however, this is still useful for
non-Customized worlds and Nether worlds.
2015-06-02 00:44:06 -07:00
Byteflux
257119a254 Stackable Buckets 2015-06-01 22:27:22 -07:00
Zach Brown
62c1f6b296 Rebuild Patches for upstream changes 2015-05-30 01:11:16 -05:00
Zach Brown
e6727223f8 Update to 1.8.6 2015-05-25 15:59:30 -05:00
Zach Brown
b86b4ff71e Things compile better when you update mc-dev 2015-05-23 13:04:28 -05:00
Zach Brown
b7ec28b5d2 Update PaperSpigot to 1.8.4 2015-05-18 18:41:57 -05:00
Byteflux
41cb01fa3f Add FallingBlock source location API 2015-04-17 02:51:46 -07:00
Zach Brown
6538ccd924 Update PaperSpigot to Minecraft 1.8.3 2015-03-07 19:16:09 -06:00
Zach Brown
436c6f2449 Rebuild our patches for upstream changes 2015-01-04 20:30:07 -06:00
Zach Brown
641703cfd8 Fix block placement in the invisible players patch
Thanks Mojang...
2015-01-03 17:35:46 -06:00
Aikar
73bc2489c0 Do not allow negative count itemstacks (infinite itemstacks)
Should work around quite a few issues and this
'feature' is relatively worthless anyway
2014-12-19 16:35:01 -06:00
Zach Brown
7ae5abba9e Add a constructor for setting both the header and the footer to PacketPlayOutPlayerListHeaderFooter 2014-12-05 22:47:37 -06:00
Zach Brown
a52eb21fd8 Update PaperSpigot to Minecraft 1.8 2014-11-27 17:17:45 -08:00
Zach Brown
41b428475c Replace non-picky rails with non-picky torches
Issues with rails colliding with hitboxes on fences
non-picky torches can be placed on stained glass on 1.8+ clients only (client-side limitation)
2014-10-24 23:41:49 -05:00
Dmck2b
b62da895f2 Work around for blocking rail duplication 2014-08-31 14:44:52 -05:00
Zach Brown
92bfbe89cf Configurable strength and weakness effect modifiers 2014-08-31 12:31:44 -05:00
Aikar
eefd5936bb Update with latest TileEntity optimization changes 2014-08-11 21:43:04 -05:00
Zach Brown
ef9c0fd1eb Move chest sound handling out of the tick loop...
and set them not to tick
2014-08-11 19:36:08 -05:00
Zach Brown
b178d09bd4 Fix random position generator's tendency to move north-west
Fixes the issue of mobs constantly going North-West in pens and other areas
backported from 1.8
2014-07-22 22:04:05 -05:00