Christian
1c78a09cfd
Also patch in warnings for Vec3Pool - similarly removed.
2014-06-13 08:51:07 -04:00
LexManos
7d700c9ad2
Merge pull request #1147 from bloodmc/chunkasync
...
Don't call ChunkDataEvent.Load async
2014-06-12 23:10:30 -07:00
bloodshot
61a6b67d51
Don't call ChunkDataEvent.Load async
...
ChunkDataEvent.Load must be called after TE's are loaded since this is
what mods expect. The event is handled by ChunkIOProvider during
callStage2.
2014-06-13 00:52:13 -04:00
Christian
be7cf8c01e
Checking in pre3 work
2014-06-12 21:13:26 -04:00
LexManos
96286b77f9
Merge pull request #938 from bloodmc/chunkasync
...
Load chunks asynchronously for players.
2014-06-12 17:43:28 -07:00
LexManos
7b6b88b002
Merge pull request #1125 from alucas/addmissingjumpevent
...
Add missing onLivingJump calls
2014-06-12 16:20:03 -07:00
Lex Manos
1b7190c50b
Pop version for new Recomended build.
2014-06-12 15:16:56 -07:00
Travis Watkins
e6bbcf6a3d
Load chunks asynchronously for players.
...
When a player triggers a chunk load via walking around or teleporting
there is no need to stop everything and get this chunk on the main thread.
The client is used to having to wait some time for this chunk and the
server doesn't immediately do anything with it except send it to the
player. At the same time chunk loading is the last major source of file IO
that still runs on the main thread.
These two facts make it possible to offload chunks loaded for this reason
to another thread. However, not all parts of chunk loading can happen off
the main thread. For this we use the new AsynchronousExecutor system to
split chunk loading in to three pieces. The first is loading data from
disk, decompressing it, and parsing it in to an NBT structure. The second
piece is creating entities and tile entities in the chunk and adding them
to the world, this is still done on the main thread. The third piece is
informing everyone who requested a chunk load that the load is finished.
For this we register callbacks and then run them on the main thread once
the previous two stages are finished.
There are still cases where a chunk is needed immediately and these will
still trigger chunk loading entirely on the main thread. The most obvious
case is plugins using the API to request a chunk load. We also must load
the chunk immediately when something in the world tries to access it. In
these cases we ignore any possibly pending or in progress chunk loading
that is happening asynchronously as we will have the chunk loaded by the
time they are finished.
The hope is that overall this system will result in less CPU time and
pauses due to blocking file IO on the main thread thus giving more
consistent performance. Testing so far has shown that this also speeds up
chunk loading client side although some of this is likely to be because
we are sending less chunks at once for the client to process.
Thanks for ammaraskar for help with the implementation of this feature.
This commit is based off the following :
Bukkit/CraftBukkit@b8fc6ab2c1
Bukkit/CraftBukkit@85f5776df2
Bukkit/CraftBukkit@0714971ca2
Bukkit/CraftBukkit@7f49722f45
Bukkit/CraftBukkit@53ad0cf1ab
2014-06-12 16:51:17 -04:00
Arkan Emberwalker
23c6b9d245
Implement STDOUT/STDERR redirection.
...
These streams now redirect to log4j2, with form '[class:method:line]: Original message'.
2014-06-12 20:28:56 +01:00
Christian
b12e0bff2a
MinecraftForge/FML@1a99ec7db6 Deprecate getAABBPool so people can stop using it in mods. Failure to do so will result in 1.7.10 upgrade incompatibility. Use getBoundingBox instead.
2014-06-12 14:45:25 -04:00
Christian
aaccbb8247
Warn when chunks are being self-recursively loaded. This can cause serious issues. Modders should watch out.
2014-06-12 14:45:25 -04:00
LexManos
c45ed6f6d8
Changed dustLapis to gemLapis to make OM SHUT THE HELL UP.
2014-06-11 22:43:15 -07:00
Lex Manos
dd5b51aac1
Fixed missed metadata offset, and now cache return values of getOres for speed.
2014-06-11 10:27:28 -07:00
Antoine
27d9edac67
Add missing onLivingJump calls
2014-06-11 13:37:36 +02:00
LexManos
a08357a845
Merge pull request #1126 from Cojomax99/fog_customization
...
World fog color and density can now be controlled through an event
2014-06-11 00:57:33 -07:00
Cojomax99
9a3bc1fff5
World fog color and density can now be controlled through an event
2014-06-11 10:54:54 +03:00
LexManos
4ae1abd7d4
Merge pull request #1134 from diesieben07/ender-teleport
...
Fix EnderTeleportEvent for Ender Pearls.
2014-06-10 18:49:32 -07:00
Lex Manos
d5a4ee2c10
Fixed inverted player parameters in PlayerEvent.Clone, Closes #1142 Closes #1140
2014-06-10 18:48:00 -07:00
Lex Manos
5849458443
Changed EntityWolf to EntityTameable in EntityLivingBase.attackEntityFrom, to allow for more custom pets. Closes #1141
2014-06-10 18:20:59 -07:00
Lex Manos
7a43d2f96a
Rework OreDictionary's internals to be a bit more speedy to help combat modders using it inapropriatly. Closes #1022 Closes #1131
2014-06-10 18:05:09 -07:00
Christian
fada1ad7bb
Deprecate getAABBPool so people can stop using it in mods. Failure to do so will result in 1.7.10 upgrade incompatibility. Use getBoundingBox instead.
2014-06-08 21:30:47 -04:00
Christian
3084368af3
Tweak bad packet warning some. Makes it a bit more log friendly.
2014-06-08 14:35:16 -04:00
diesieben07
b0195f31e4
Fix not being able to change target & attackDamage for EnderTeleportEvent.
2014-06-07 13:45:29 +02:00
Christian
58e69af1b3
MinecraftForge/FML@e3ce211cc7 Nullcheck the dispatchers on players. Should stop some crashes when spamming connectivity.
...
MinecraftForge/FML@480bf2c1d0 Fix REPLY handling in SimpleNetworkWrapper. Closes #440
2014-06-05 15:31:11 -04:00
Christian
8e64a82423
Fix REPLY handling in SimpleNetworkWrapper. Closes #440
2014-06-05 14:31:44 -04:00
Lex Manos
03ae909762
Fix inverted parameters in OreDictionary.getOreID Closes #1123
...
-.- Closes #1120
2014-06-04 23:09:13 -07:00
bspkrs
04c2ed554d
Added support for new FML config GUI classes
...
refactored lots of stuff based on comments
added Configuration.load() exception handling and logging
2014-06-04 17:39:47 -04:00
bspkrs
b861e95b17
Added config GUI system
2014-06-04 17:36:47 -04:00
Christian
c27f4b34f8
Merge branch 'master' into mc179
2014-06-03 13:04:49 -04:00
Christian
8883803260
Nullcheck the dispatchers on players. Should stop some crashes when spamming connectivity.
2014-06-02 22:12:13 -04:00
LexManos
f3cbc6c262
Merge pull request #1034 from Adubbz/master
...
Greatly simplified the addition of new biomes to the default world. If this breaks things blame Adubbz.
2014-06-02 17:00:47 -07:00
Lex Manos
42fc3c9516
Added Noteblock change and play events. Closes #1027 #1025
2014-06-02 16:57:04 -07:00
Lex Manos
b301b1f70c
Add target world to PlayerInteractEvent for potential 'cross dimension' interaction such as LittleBlocks. Closes #1071
2014-06-02 15:49:11 -07:00
Lex Manos
eb1ddab278
Add a couple of localizations to Forge added strings. Closes #1068
2014-06-02 15:28:11 -07:00
LexManos
0456c4d5ae
Merge pull request #1095 from rwtema/master
...
Fixed setBlock not using the location version of getLightOpacity()
2014-06-02 14:28:42 -07:00
Lex Manos
fa3feda0d5
Filter all vanilla blocks that we missed through Forge's getDrops and BlockDrops events. As well as implemented IShearable for DoublePlants and DeadBushes. Mojang really should generic out some of this stuff instead of repeating logic all over the place!
2014-06-02 14:10:49 -07:00
Lex Manos
f2a33ea9f6
Add comment to RotationHelper telling modders where to actually look, closes #1115
2014-06-02 12:20:28 -07:00
Lex Manos
e7f492a15b
Fixed GuiContainer calling button.mouseReleased. Closes #1116
2014-06-02 12:01:34 -07:00
Lex Manos
5fe0a0ea5a
Fix patch fuzz
2014-06-02 12:01:10 -07:00
Christian
2e152c52c4
MinecraftForge/FML@585d3a91e1 If a packet is not handled by the channel, log it, and clear it. Could be spammy, but this is a serious bug and could cause a memory leak otherwise.
...
MinecraftForge/FML@cd715efca1 Log the queue as well
2014-05-31 09:53:36 -04:00
LexManos
7f018dad0f
Merge pull request #1112 from diesieben07/entity-tracking
...
Add PlayerEvent.StartTracking and .StopTracking
2014-05-29 17:19:58 -07:00
diesieben07
deb5df542e
Add PlayerEvent.StartTracking and .StopTracking & make trackedEntityIDs visible
...
& Update, as discussed on IRC (squash)
2014-05-30 01:59:05 +02:00
LexManos
4a6a49e073
Merge pull request #1109 from Open-Code-Developers/finite-patch
...
Make finite fluid blocks drainable
2014-05-29 15:18:34 -07:00
Lex Manos
0737601dbf
Fix enum helpers for EnumRarity {moved to Commn and changed paramter} and EnumCreatureType {new parameter} and added junit test for them. Closes #1009
2014-05-28 15:28:40 -07:00
Christian
014acf6f1d
Log the queue as well
2014-05-27 18:56:02 -04:00
Christian
72fbc45a19
If a packet is not handled by the channel, log it, and clear it.
...
Could be spammy, but this is a serious bug and could cause a memory leak
otherwise.
2014-05-27 17:59:53 -04:00
Christian
0a56e19d47
MinecraftForge/FML@1d41aa978d Fix the side for the compatibility check. Should result in green ticks finally!
2014-05-26 15:30:22 -04:00
Christian
c56fc3b490
Fix the side for the compatibility check. Should result in green ticks finally!
2014-05-26 14:57:14 -04:00
Lex Manos
5f90e0788b
Change IShearable JavaDoc by one line so Anti would shut up. Closes #1054
2014-05-26 11:26:53 -07:00
Christian
36ab17474b
MinecraftForge/FML@4512f8e5e3 Warn when the objectholder finds nothing in the registry. Helps debug mismatched names. Also, actually make the scoping thing work with objectholder
2014-05-26 11:29:15 -04:00