Alexander Harkness
c8c061edf7
Update comments and code for Load/SaveOneChunk so they match ( #4992 )
...
Fixes #4991
2020-10-11 16:14:43 +00:00
Alexander Harkness
89fb16fc27
Update issue templates ( #4960 )
...
* Update issue templates
* Delete ISSUE_TEMPLATE.md
* Disable blank issues with newfangled issue template method
2020-10-01 23:20:10 +00:00
Alexander Harkness
281beba50e
Fix the build. Merge conflict between two PRs ( #4936 )
2020-09-25 10:59:08 +00:00
Alexander Harkness
8de71fc9d6
Synchronously save chunks on server shutdown ( #4900 )
...
+ Synchronously save chunks on server shutdown. Fixes #4884
2020-09-21 13:12:09 +01:00
Alexander Harkness
a3b5cba6be
Define _DEBUG macro for tests and main server ( #4843 )
...
Cuberite can now ASSERT its own failure once again...
Signed-off-by: @tigerw
2020-08-30 15:32:03 +00:00
Alexander Harkness
b230b547b6
More tar incompatibility changes
...
Why not just agree on a single type of tar?
2020-08-20 21:09:54 +00:00
Alexander Harkness
6ded83f8f2
Exclude .git only, mac has inferior tar
...
(not sticky enough)
2020-08-20 20:48:58 +00:00
Alexander Harkness
8e0b210e66
Exclude VCS files from archives for jenkins binaries
2020-08-20 20:34:13 +00:00
Alexander Harkness
3986059866
Remove BountySource from funding sources
...
Nobody has used it recently, and it seems to be in a downwards spiral,
with the escrow stealing announcement.
2020-08-10 20:16:02 +01:00
Alexander Harkness
fd52d8e8df
Add documentation for @tigerw's new CMake flags ( #4814 )
...
* Add additional compilation options to CMakeLists.txt
* Add new CMake options to COMPILING file
* Add comment about CMake version requirements
2020-08-06 16:13:47 +00:00
Alexander Harkness
b45d8bfc1e
Revert "Hotpatch optional for macOSX builds on buildserver"
...
This reverts commit 5e3f51f5ff .
2020-08-06 12:36:41 +01:00
Alexander Harkness
d6c5ac40a6
Fix big tree ring radius calculations. Ring radius now stays within range.
2020-08-05 18:41:19 +01:00
Alexander Harkness
7cd6f0e01e
fixup! Disable LTO on Android
2020-08-04 23:37:21 +01:00
Alexander Harkness
e317e7aa50
Disable LTO on Android
...
Build breaks with it enabled
2020-08-04 23:24:35 +01:00
Alexander Harkness
727844a15d
Fix android builds (hopefully)
2020-08-04 23:01:40 +01:00
Alexander Harkness
5e3f51f5ff
Hotpatch optional for macOSX builds on buildserver
2020-08-04 23:01:39 +01:00
Alexander Harkness
9c51c54e91
Update Core
2020-05-08 11:52:25 +01:00
Alexander Harkness
4e4ef9052e
Refactor minecart collision detection code. ( #4712 )
...
* Refactor minecart collision detection code.
- Use new GetBoundingBox function.
- Handle descending and ascending rails.
- Snap to descending rails.
* Add message for UNREACHABLE
2020-05-04 21:04:21 +00:00
Alexander Harkness
8240894d07
Add comment for boat position broadcast
2020-05-04 09:13:55 +01:00
Alexander Harkness
994036a3b8
Add cEntity::GetBoundingBox, and use where appropriate. ( #4711 )
...
* Add cEntity::GetBoundingBox, and use where appropriate.
2020-05-03 21:04:33 +01:00
Alexander Harkness
942403de2b
Modify pickup collection behaviour to correspond to vanilla.
...
As documented here: https://www.spigotmc.org/threads/item-pickup-radius.337271/#post-3141146
2020-05-03 11:49:07 +01:00
Alexander Harkness
8914355895
Fix rotation metas on blocks
2020-04-11 19:00:05 +00:00
Alexander Harkness
0d72270186
Replace all single-digit hex constants with two-digit version
2020-04-10 13:07:16 +00:00
Alexander Harkness
db118af6ae
Remove silly empty cBlockGlazedTerracotta class
2020-04-10 13:07:16 +00:00
Alexander Harkness
49f301d5a4
Reduce line length on templates
2020-04-10 13:07:16 +00:00
Alexander Harkness
e5cc698ee7
Add additional spacing between template/function definitions
2020-04-10 13:07:16 +00:00
Alexander Harkness
9bb001f17b
Add doxy-comments to new functions
2020-04-10 13:07:16 +00:00
Alexander Harkness
2b77b67197
Fix comment text
2020-04-10 13:07:16 +00:00
Alexander Harkness
f40aba941e
Add mixins for blocks that rotate based on player yaw at placement
...
Also add observer block handler.
2020-04-10 13:07:16 +00:00
Alexander Harkness
458d7f95c2
Brewing stands do not have rotation
2020-04-10 13:07:16 +00:00
Alexander Harkness
48ccd93426
Add Terracotta handlers
2020-04-10 13:07:16 +00:00
Alexander Harkness
cb21a4611d
Correct Black Glazed Terracotta block handler
2020-04-10 13:07:16 +00:00
Alexander Harkness
b8141f6c87
Add additional blocks which are not breakable by hand
2020-04-10 13:07:16 +00:00
Alexander Harkness
4a62e004c5
Change stained clay hardness value
2020-04-10 13:07:16 +00:00
Alexander Harkness
b9c9698d87
Update Core
2020-04-10 12:18:37 +01:00
Alexander Harkness
4b3043f627
Fix compilation, for real this time.
...
I should go to sleep now...
2020-04-10 01:01:07 +01:00
Alexander Harkness
a780b3a4f5
Oops, remember to save your files!
2020-04-10 00:53:04 +01:00
Alexander Harkness
df8d7332d0
Re-enable darwin download from easyinstall.sh script
2020-04-09 21:41:16 +01:00
Alexander Harkness
16b3de94c8
Add potatoes to washed away list also
2020-04-05 12:43:03 +01:00
Alexander Harkness
2b9474f171
Remove switch statements from cItemFoodHandler ( #4610 )
...
* Remove switch statements from cItemFoodHandler
* Alpha-sort and add comment
* Relocate golden apple handler
2020-04-04 15:13:41 +00:00
Alexander Harkness
ba048e2101
New hotfix to prevent calling OnBroken ( #4600 )
...
* Fix stack overflow in breaking ice.
Stupid fix, but it does work and is used in other places too...
* Replace hotfix for pistons with better one
* Fix comments in BlockBed handler
2020-04-03 20:24:49 +00:00
Alexander Harkness
f2810db380
Update Core
2020-04-02 17:24:10 +01:00
Alexander Harkness
cdc452916e
Replace buckets to the selected hotbar slot, rather than the first available. ( #4580 )
...
* Replace buckets to the selected hotbar slot, rather than the first available.
Replicates vanilla behaviour, as well as being more logical.
* Refactor cInventory::AddItem. Behaviour is now documented
* Add new cInventory::ReplaceOneEquippedItem and ::SetEquippedItem methods
* Return empty potion to the same slot after drinking
* Replace buckets correctly in other situations, not simply water and lava
Uses the new ReplaceOneEquippedItem method
* Correct collecting water from source block with bottle
* Add cPlayer::ReplaceOneEquippedItemTossRest method
* Handle stacked filled buckets (in theory)
Use new cPlayer::ReplaceOneEquippedItemTossRest method
2020-04-02 12:42:15 +00:00
Alexander Harkness
25d5e1bfe1
Oops, that wasn't supposed to be negated
2020-04-01 20:48:45 +01:00
Alexander Harkness
8f80019b78
Don't build using ccache when it doesn't exist
2020-04-01 20:47:25 +01:00
Alexander Harkness
3148f6511e
Remove substitution syntax breaking mac builds
2020-04-01 20:12:09 +01:00
Alexander Harkness
41d4ea6948
Fix off-by-one error and clean error messages in manual bindings for BlockArea ( #4549 )
...
* Correct off-by-one error in manual bindings for FillRelCuboid
Fixes #4454
* Fix inconsistent error messages in manual bindings for BlockArea
* Generate error if invalid coords passed to FillRelCuboid
2020-04-01 12:43:26 +00:00
Alexander Harkness
9210501af5
Prevent player from being destroyed by plugins ( #4584 )
...
* Prevent player from being destroyed by plugins
Add manual binding, bails out with error message if attempted
entity to destroy is player.
* Improve warnings and documentation, remove automatic binding
* Remove old and unnecessary deprecated function
2020-03-31 11:39:23 +00:00
Alexander Harkness
1e4cf9ce48
Correctly pass cache arguments to cmake in Jenkins build script
2020-03-29 21:18:19 +01:00
Alexander Harkness
aa9a16b0c6
Fix build on Clang
2020-03-28 18:27:38 +00:00
Alexander Harkness
964437dc95
Fix alpha-sorting
2020-03-28 12:20:55 +00:00
Alexander Harkness
3a2f364c95
Merge #4552
...
commit 28654b1f42a98c0f9910e333a9c8074fe30aff24
Author: Alexander Harkness <me@bearbin.net >
Date: Fri Mar 27 11:58:34 2020 +0000
Remove whitespace
commit f1492e174b51e168bf4fb150c2d7b7096c393057
Author: Odin <SirRobo@users.noreply.github.com >
Date: Fri Mar 27 04:30:32 2020 +1100
Add issue comment
commit b64166d68a327e8a9bf80720ff6e9c6af93921b5
Author: Odin <SirRobo@users.noreply.github.com >
Date: Fri Mar 27 03:42:35 2020 +1100
Don't run OnBroken with pistons
Stops piston duplication bug and doesn't break water and lava simulation
2020-03-27 12:01:50 +00:00
Alexander Harkness
d18e134e7e
Update Core
2020-03-26 17:11:13 +00:00
Alexander Harkness
8154bde116
Replace downloads links with new redirect server links
2020-03-24 21:23:03 +00:00
Alexander Harkness
746160c1e5
Update Core
2020-03-24 12:31:29 +00:00
Alexander Harkness
605cf774f9
Update .gitignore; new files added to APIDump are no longer ignored
2020-03-23 12:37:11 +00:00
Alexander Harkness
ad1872f8cc
Add missing documentation file.
2020-03-23 12:24:31 +00:00
Alexander Harkness
0a68994f48
Manual merge of #4498 .
...
Credit to @MeMuXin
Closes #4498
2020-03-23 12:18:12 +00:00
Alexander Harkness
0d444b62c9
Updated core, fixes #4520
2020-03-22 00:57:58 +00:00
Alexander Harkness
0e694ae257
Update Core
2020-03-21 11:33:35 +00:00
Alexander Harkness
cfedb03a09
Create build script for Jenkins (and use it) ( #4473 )
...
* Add Jenkins build script, so it can actually be used.
* Build tools
* Reduce build threads to 2 so as not to overload server
* Rename CIBuild.sh to travisbuild.sh, better reflect actual use
* Echo commands as they are executed
* Add toolchain file configuration
2020-02-24 11:28:24 +00:00
Alexander Harkness and Mat
bf10b56638
Fix android builds ( #4432 )
...
* Terminate android build script early if any step fails
* Remove deprecated android types
* Use android NDK cmake support rather than cmake android NDK support as that support is better supported
* Android uses GNU strerror_r?
* Fix compilation
* Rebase
* Fix final issues
* Drop submodule changes
* Revert change
* Parentheses
* Lower api levels
* Don't use GNU strerror_r for Android
Co-authored-by: Mat <mail@mathias.is >
2020-01-02 03:54:40 +02:00
Alexander Harkness
c4f43cd8ec
Store and pass entity effect duration as an int not a short. ( #4293 )
...
Fixes #4292 .
2018-08-26 15:52:39 +01:00
Alexander Harkness
03c977a200
Update m_IsSolid assignments in BlockInfo ( #4167 )
...
Fixes #4166
2018-06-24 11:32:17 +01:00
Alexander Harkness
07619d932d
Exp Orbs and Pickups are destroyed instantly by cacti. ( #4136 )
...
* Cactus detection code follows pattern set in #3996
* Pickups are now destroyed on cactus contact
* Add cactus detection and destruction to Exp Orbs
Remove checks for IsExpOrb() in cEntity::Tick()
Exp Orbs do not call super::Tick() and so this condition was
pointless.
2018-01-16 19:13:17 +00:00
Alexander Harkness
ad22922393
Rename cEntity swim states ( #3996 )
...
* Replace cEntity:m_IsSubmerged with m_IsHeadInWater
* Replace cEntity:m_IsSwimming with m_IsInWater
* Add API documentation for new symbols
* Apply SetSwimState to all entities, not just mobs and players
* Pickups now use IsOnFire to check if they are on fire before destruction
Fixes #3987
2018-01-14 18:44:45 +00:00
Alexander Harkness
2529a89835
Golden Apple Fixes ( #4130 )
...
* Do not remove food item until player has been fed
* Golden apples now ignore hunger when eating
* Removed EnchantedGoldenApple recipe, as it was removed in 1.9
Reference: https://minecraft.gamepedia.com/1.9#Items_2
* Adjust golden apple effects, as they were changed in 1.9
Reference: https://minecraft.gamepedia.com/1.9#Items_2
2018-01-06 00:39:23 +00:00
Alexander Harkness
b4aa19f329
Item durability loss now depends on the item used. ( #4123 )
...
Armour durability also no longer changes when it
is used to break blocks or attack mobs.
Fixes #4119
2018-01-05 11:28:06 +00:00
Alexander Harkness
6309c6a97f
improve rain simulation ( #4017 )
...
* Uses vanilla logic to decide which blocks rain falls through.
* Rain falls infinitely above the world, and stops at y=0.
* Entities will now be extinguished if they are under rain-blocking
blocks, and fire will now be extinguished by rain similarly.
* Create IsWeatherWetAtXYZ to identify wetness at a particular location.
* Use new code for enderman rain detection.
* Fixes issue #916
* Disable warnings for global constructors in the fire simulator.
2017-12-26 21:25:57 +00:00
Alexander Harkness
ab5ff6a6f8
.editorconfig fixes ( #4113 )
...
alpha-sort .editorconfig
remove unknown .editorconfig command
2017-12-26 21:14:37 +00:00
Alexander Harkness
705deea205
Water bottles are drinkable potions ( #4114 )
...
Water bottles are now drinkable potions
Fixes #4111
Also update outdated mcwiki references
2017-12-26 20:27:24 +00:00
Alexander Harkness
96b72ab88e
Correct spider eye item ID ( #4110 )
...
Fixes #4108
2017-12-25 09:04:38 +00:00
Alexander Lyons Harkness
1926181cb7
Fix style of Tools
2017-12-24 14:23:23 +00:00
Alexander Lyons Harkness
a9c8ad9ce2
Fix typo in #4095 .
...
The build was being broken.
2017-12-21 16:01:24 +00:00
Alexander Harkness
ad33a2d866
Add liberapay link
2017-09-14 12:56:29 +01:00
Alexander Harkness
0968a4d360
Fix error with implicit cast from long long to long ( #4026 )
2017-09-14 13:11:22 +02:00
Alexander Harkness
a4c07d2f98
Adjust lava damage values ( #4020 )
...
Fixes isue #2925
2017-09-12 09:02:17 +01:00
Alexander Harkness
4e7325c9e2
Fix crash for players out of the world. Fixes #4006 ( #4007 )
2017-09-10 17:45:18 +01:00
Alexander Harkness
c334824199
Shutdown connection when disconnect packet sent ( #3999 )
2017-09-08 09:36:23 +02:00
Alexander Harkness
b5a23e5cd9
Lighting now generally consistent with vanilla ( #3988 )
...
* Lighting now generally consistent with vanilla
Skylight is now dispersed by some blocks, instead of passing
through unimpeded.
Some blocks which were not marked as transparent are now marked as
such.
Water and other such blocks now attenuate light with the correct
intensity.
Generally changes were based on documentation in the Minecraft
Wiki: https://minecraft.gamepedia.com/Opacity#On_block_light ,
however during play-testing on vanilla lava was found not to
attenuate sky or block-light so the attenuation was removed.
This fixes #3849
* Add API documentation for IsSkylightDispersant
* Rename m_SkylightDispersant to m_IsSkylightDispersant
* Update comment for m_Transparent property of Blocks
2017-09-07 11:56:17 +01:00
Alexander Harkness
e33eb529ad
Fire effect now shown for creative and spectator mode players ( #3998 )
...
* Fire effect now shown for creative and spectator mode players
Fixes #3989
* Add documentation for IsFireproof
2017-09-07 09:59:08 +01:00
Alexander Harkness
7f2c0ef0d6
OnLogin now kicks players properly ( #3980 )
2017-09-01 15:49:35 +02:00
Alexander Harkness
c6bc822054
Update core plugins to latest version ( #3951 )
...
* Update core plugins to latest version
* Update Core again
2017-08-30 10:32:53 +01:00
Alexander Harkness
0140923c35
Fix mobs not burning in daylight when on snow ( #3961 )
...
* Fix mobs not burning in daylight when on snow
or other non-transparent partial blocks.
Fixes #3945
* Change from floor to ceil
2017-08-25 16:26:45 +01:00
Alexander Harkness
83ff815d1e
Update copyright dates and contributors message ( #3907 )
2017-08-07 16:17:01 +01:00
Alexander Harkness
bc861e5bb8
Added new Cuberite backers from bountysource.
2017-07-03 09:05:04 +01:00
Alexander Harkness
62ffa37bf1
Add Fllamber to BACKERS file.
2017-03-29 20:24:01 +01:00
Alexander Harkness
a897e68612
Move submodules to new organisation. ( #3485 )
2016-12-18 12:29:36 +00:00
Alexander Harkness
baefed8061
Fix issue #3312
...
Nether brick fences now drop their item.
2016-08-12 13:55:41 +01:00
Alexander Harkness
c563611543
Updated Core.
2016-08-10 18:47:53 +01:00
Alexander Harkness
58b29adc88
Fixed cFastRandom Test. ( #3291 )
...
This resolves #3290
2016-08-03 09:35:42 +02:00
Alexander Harkness
032dafd7fd
Switch out long download/compile links. ( #3278 )
...
The links have been replaced with short links that forward to the
long links.
Fixes issue #3275
2016-08-02 15:07:34 +01:00
Alexander Harkness
a4ca689974
Add {} around easyinstall.sh ( #3286 )
...
This makes piping the download to sh safer.
2016-07-31 12:02:42 +01:00
Alexander Harkness
320d1c6151
Fix tab list sometimes not updating after a player leaves. ( #3280 )
...
When a player leaves the game, their client handle has its state
changed to csDestroyed.
This should fix issue #3138
2016-07-31 12:02:21 +01:00
Alexander Harkness
9e52982f0e
Change CROSSCOMPILE flag to NO_NATIVE_OPTIMIZATION ( #3279 )
...
* Change CROSSCOMPILE flag to NOMARCHNATIVE.
The old name was confusing, the new name describes exactly what it does.
This fixes issue #3272
* Break configuration when using CROSSCOMPILE.
This stops any old build scripts from producing broken builds.
* Use NO_NATIVE_OPTIMIZATION rather than NOMARCHNATIVE.
Addresses @madmaxoft's concerns.
2016-07-30 14:22:18 +01:00
Alexander Harkness
62702cab48
Fixed port command line argument. ( #3287 )
2016-07-30 12:21:11 +01:00
Alexander Harkness
fb2e231f5e
Fix the error in #3270 .
2016-07-29 19:51:33 +01:00
Alexander Harkness
56a0c48580
Added additional examples to the documentation for HOOK_BLOCK_SPREAD. ( #3277 )
...
Fixes issue #3274
2016-07-29 14:44:39 +01:00
Alexander Harkness
a2a9341c24
Tab completion across worlds ( #3270 )
...
Fixes #2563 .
2016-07-21 13:00:30 +02:00
Alexander Harkness
72aa50f710
README now has HTTPS links.
2016-07-20 17:17:36 +01:00