1f5f67e087
Liquid: Removed a bad hack-fix, fixed mobs not moving when water flows around them
...
this breaks more than it appears to fix, and I can't reproduce any CPU
leaks when block updates are enabled, so I'm going to assume this is OK.
2017-11-24 17:23:12 +00:00
74967eed87
Liquid: Stop abusing getLevel() in performance-sensitive situations
...
Most of these methods are called from onUpdate(). It's unreasonable to
assume that the level might be null during a tick (unless a plugin
messes with a block update event or something, but that's undefined
behaviour anyway). Using getLevel() simply wastes processing time by
constantly checking if the level is closed.
2017-11-24 16:58:03 +00:00
18e4e5364f
Fixed getBlock() performance degradation caused by 781de3efab
, added Level->getBlockAt() to avoid creating vectors everywhere
2017-10-20 13:22:49 +01:00
d8b1757ebc
added some nullable and void typehints to Block API
2017-10-11 18:45:40 +01:00
1b5fed983b
Revert "Fixed slab placement, close #145 ", reopen #145 , close #1314
...
This reverts commit f2ff0198cc
.
2017-09-21 14:41:18 +01:00
ea5bd0348a
Fixed liquid flow attempting to set negative block damage values
...
This should only execute if the current liquid block is actually still existent. When decay is negative, it means the water block doesn't exist anymore.
2017-08-29 14:22:12 +01:00
02f42eba48
Move block registration to its own class
2017-08-20 18:05:01 +01:00
f2ff0198cc
Fixed slab placement, close #145
2017-08-20 10:52:07 +01:00
e51106e64c
Fixed bad overrides of getBoundingBox()
2017-08-19 17:16:22 +01:00
0e24596aed
Changed block construction calls to Block::get()
2017-08-19 13:46:17 +01:00
d8f0dd6db8
Changed Block->getDrops() to return Item[]
2017-08-18 11:21:33 +01:00
83af4dcd59
Block API typehints
2017-08-17 13:50:19 +01:00
06083d6dc4
s/Item/Block
2017-08-07 16:26:27 +01:00
210bdc2436
Fixed liquid CPU leaks and some flow issues
...
Liquid still needs a total rewrite, but at least it won't constantly waste CPU anymore.
2017-07-31 07:24:22 +01:00
a95d173989
Fixed a couple of repeated Level->getBlock() calls in Liquid
2017-07-30 17:57:40 +01:00
51b0673b4b
Bite the bullet and enable strict types on everything
2017-06-07 12:53:16 +01:00
f3ab45e7d5
Merged in 1.0.6 changes, added autogenerated data for 1.1.0.3 (doesn't work yet) and deliberately made the same merge error as Mojang
2017-04-14 13:00:43 +01:00
9004417456
Fixed file headers ( #255 )
2017-01-13 16:57:05 +00:00
6fc435da0e
Imports rearrangement
2016-10-03 00:43:46 +08:00
26c9eed82e
Added all block hardness
2015-07-27 20:31:55 +02:00
74917923b6
Improved checks, area collision checks, etc
2015-05-29 15:13:19 +02:00
7201372b0d
oops
2015-05-23 12:02:20 +02:00
744ea6af8f
Fixed #3023
2015-05-23 11:47:07 +02:00
4c30b6b8a1
Optimized Liquid spreading, optimized light updates, improved side block get/update, fixed raw set not cleaning Block cache (TNT explosions)
2014-12-10 00:37:04 +01:00
747f7685e7
Fix formatting issues due to bad IDE settings
2014-12-07 16:30:04 +01:00
a98da3bab1
Renamed old getID() calls to getId()
2014-12-07 15:21:32 +01:00
af82d616c1
Block creating and property handling rewrite, part2
2014-12-07 02:20:26 +01:00
a0d4bff385
Block creating and property handling rewrite, part1
2014-12-07 01:53:27 +01:00
f866efb622
Removed unused Block->isLiquid property
2014-11-27 17:26:43 +01:00
8601405a88
Fixed CPU leak
2014-10-31 21:07:00 +01:00
7abf52e615
Implemented Vector3 List and AxisAlignedBB Pool to decrease object allocation
2014-10-27 15:39:20 +01:00
1eec333501
Save block bounding boxes, improves block cache
2014-10-13 18:38:00 +02:00
da23cf685d
Added PlayerBucketEvent and children, improved Bucket usage and Liquid placing
2014-10-13 18:04:40 +02:00
0af3dfedd5
Improved Living entity ticking
2014-10-11 17:35:13 +02:00
94eb9e35e2
Improved liquid performance, update RakLib
2014-10-08 23:24:39 +02:00
31bb6d1a68
Changed base block classes to abstract, closes #2159
2014-10-06 09:27:44 +02:00
48041b2f19
Basic entity motion on water
2014-09-27 00:09:38 +02:00
48bc919a33
Added Liquid flow
2014-09-26 16:56:10 +02:00
ae6f532b1d
Partial Liquid flow
2014-09-26 13:25:52 +02:00
f0e7713dce
Added suffocation, drowning damage. Closes #1908
2014-09-16 11:51:31 +02:00
049103ab7a
Improved Block selection and construction performance
2014-08-25 16:39:47 +02:00
dd17652aca
Fixed wrong paths
2014-04-01 05:06:12 +02:00