4316 Commits

Author SHA1 Message Date
UnknownShadow200
7b5b4bcf83 Fix botai hunt instruction not behaving properly if other instructions are in the AI and the delta from bot to target player is negative on either x or z axis. (Thanks Yovel) 2020-02-23 09:01:14 +11:00
UnknownShadow200
0cec7bcffe Fix some fields in particle packets being 1/10 factor too small 2020-02-22 22:32:22 +11:00
UnknownShadow200
63703b13cd Just CustomParticles for CPE extension 2020-02-22 20:58:52 +11:00
Goodlyay
7dd908a882 Add support for custom particles
Packet "DefineParticle" and packet "SpawnParticle"
2020-02-22 01:35:46 -08:00
UnknownShadow200
3d98e16a5c Make SPlace a draw op 2020-02-20 17:04:37 +11:00
UnknownShadow200
3e60ac11d5 Allow info/remove/edit ing multiple blocks using lb/gb 2020-02-19 22:04:26 +11:00
UnknownShadow200
1d7006e6a1 Fix ccols not behaving properly when used by multiple players simultaneously
This could rarely cause an I/O exception when trying to save the list
2020-02-16 09:28:05 +11:00
UnknownShadow200
b9413bbc32 Undo previous commit because it doesn't compile on mono 2020-02-09 10:33:42 +11:00
UnknownShadow200
317d3dfb31 Enable support for ipv4 connections on ipv6 listener. (Although default listener is ipv4 anyways) 2020-02-09 09:29:39 +11:00
UnknownShadow200
85aa55a84b Fallback to slower /undo if this /undo would overlap previous undos
Fixes when doing /z,/undo,/redo,/undo 1h, /undo 1h, /undo 1h etc, each /undo 1h would replay the previous /undo1h,/redo,/undo.. etc which could be abused to incredibly spam the BlockDB
2020-02-09 08:50:21 +11:00
UnknownShadow200
1bef2d5315 Considering that undo formats have been obsoleted for 3 years, drop support for them completely 2020-02-08 14:00:10 +11:00
UnknownShadow200
dd6b5610fb When dying from drowning in lava, the message should be 'burnt to a crisp' instead of just 'drowning'. (Thanks CounterTerrorist) 2020-02-06 11:17:17 +11:00
UnknownShadow200
ed964472fe Allow changing tablist group name of zombies/humans in zombie survival (Thanks RealMaxJacobsYT) 2020-02-06 11:01:56 +11:00
UnknownShadow200
74cb4023a3 Fix wrong message when you can't /fill due to trying to fill more then your rank's draw limit 2020-01-31 18:23:45 +11:00
UnknownShadow200
9cc5b638ed Support compiling unsafe C# code 2020-01-30 13:20:20 +11:00
UnknownShadow200
3055440ed8 Cleanup some of the permissions code 2020-01-30 12:45:44 +11:00
UnknownShadow200
8ee875d8ee Fix .HandleCommand not working when used with console player instance 2020-01-30 11:20:26 +11:00
UnknownShadow200
69d6c12c34 Fix cmdset/blockset not behaving properly when used by multiple players simultaneously
This could rarely cause command/block permissions to get reset
2020-01-30 09:45:39 +11:00
UnknownShadow200
9c719febbc Properly dispose of museum levels when the player leaves
This fixes rare case where if you somehow activate physics in a museum, the level didn't ever get released from memory
2020-01-20 22:02:16 +11:00
UnknownShadow200
cac12221c1 Make /renamelvl update all portals tables, so any portals that previously exited on source map instead exit on destination map 2020-01-20 20:07:08 +11:00
UnknownShadow200
06175cc480 Make /renamelvl work with unloaded maps 2020-01-20 19:37:47 +11:00
UnknownShadow200
774ddc497e Don't try {} catch {} around LevelActions.Copy 2020-01-20 19:29:19 +11:00
UnknownShadow200
b9e06a6643 Cleanup /deletelvl 2020-01-20 18:24:02 +11:00
UnknownShadow200
4dcca3ff0a Fix copying a level not saving to disc first.
You used to potentially lose a few recent changes in the copied map if the source level hadn't been saved for a while
2020-01-20 07:49:51 +11:00
UnknownShadow200
57a85ed71d compile again 2020-01-18 16:24:45 +11:00
UnknownShadow200
00278269fa Replace uses of p.Extras.Put with p.Extras[key] instead, and and obsolete warning for using deprecated p.Extras.Put and friends 2020-01-18 16:15:22 +11:00
UnknownShadow200
a959cd0ffe Move some stuff out of LevelInfo.cs and into the more appropriate Paths.cs 2020-01-18 16:11:34 +11:00
UnknownShadow200
460a24d64e Don't turn off 'auto unload' setting when setting main world, because Unload function already won't unload the main world. 2020-01-16 00:35:38 +11:00
UnknownShadow200
86d85a5339 One function for getting path to level's blockdefs, instead of three separate ways 2020-01-15 21:03:30 +11:00
UnknownShadow200
41e422025b Release 1.9.1.7 1.9.1.7 2020-01-13 18:30:31 +11:00
UnknownShadow200
b3bf97106e Don't try loading .env files in level.LoadMetadata
.env files has been deprecated for a very long time, and are automatically combined with properties file at server startup anyways.
2020-01-13 18:08:15 +11:00
UnknownShadow200
a814c1e9c4 Change BlockDefinition.Load to take arbitary path as argument 2020-01-13 12:38:54 +11:00
UnknownShadow200
f2cd09331e Add support for textures over 256 to .cw importer 2020-01-12 22:32:52 +11:00
UnknownShadow200
a999995fd2 Add support for importing blocks over 255 in .cw importer 2020-01-12 21:30:40 +11:00
UnknownShadow200
8f71f99b4f Fix a save that takes a while triggering physics shutdown 2020-01-12 17:41:11 +11:00
UnknownShadow200
22a3c00a05 Fix rare bug where doors would get stuck as air form on saving
This was caused by writing blocks to disc, then physics tick running in another thread, then writing physics checks to disc. This would cause physics checks to be written according to the blocks in the map after the tick finished, but the blocks in the file would be from before the tick executed.
2020-01-12 17:28:16 +11:00
UnknownShadow200
fdc04fa0cc Fix an incredibly extremely rare bug which caused zones to get lost on saving
The exporter works by counting number of physics checks with non-0 data, then writing that count to disc, and then writing the actual physics checks to disc. However, because the 'writing actual physics checks' reloaded the 'number of physics checks' instead of using the same 'number' as when it was counting number of physics checks with non-0 data, this could cause it to write more entries to disc than the count stated on the extremely rare chance that some other thread modified the checks list in-between writing the 'count' and the actual physics checks. This would then cause zones to not get loaded the next time the map was loaded from disc, because the importer would try interpreting that extra entry as a section identifier. Because that would not match any section identifiers it knew about, it would give up reading anymore data, and hence would not read the actual zones list section. Although I had taken steps to ensure physics could not change checks list while the map was being saved, I forgot that a user deleting a door block would still add a physics check to the list, which could thus extremely rarely trigger this bug. TL;DR multithreading is a pain.
2020-01-11 23:35:02 +11:00
UnknownShadow200
a865a60cce few very minor optimisations to libnoise 2020-01-09 22:51:15 +11:00
UnknownShadow200
76a98a3a18 Simplify Voronoi a bit 2020-01-09 21:50:58 +11:00
UnknownShadow200
7849b7a111 Avoid a few pointless memory allocations in .lvl exporter
This also fixes the .lvl header being endian dependent, not that it probably matters
2020-01-09 21:10:10 +11:00
UnknownShadow200
7742887367 Get rid of unnecessary Math class in libnoise 2020-01-09 14:07:49 +11:00
UnknownShadow200
f43fad2667 Get rid of stuff we don't really need from libnoise 2020-01-06 12:55:05 +11:00
UnknownShadow200
b98a10693c Integrate LibNoise into MCGalaxy instead of using external dll 2020-01-06 12:45:00 +11:00
UnknownShadow200
64cb2a170f Fix confusing behaviour where you could make a block be both a portal/MB, portal/door etc. Now you can only make it one behaviour.
This confused users because you could say make a block both a portal and a message block with /blockprops, but it would only behave as a message block.
2020-01-05 12:03:09 +11:00
UnknownShadow200
46203b6e74
Grammar fix in changelog to test webhook 2020-01-01 11:25:09 +11:00
UnknownShadow200
6655b34f13
Change from OSX to macOS in the readme 2020-01-01 10:25:06 +11:00
UnknownShadow200
47977435d1 Oops forgot to fix updater too 2019-12-27 12:50:00 +11:00
UnknownShadow200
ea666daf5b Fix building debug configuration putting some files in bin/release still (Thanks 123DMWM) 2019-12-27 12:47:53 +11:00
UnknownShadow200
4815333e29 Make /mirror x more logical in that it flips all X coordinates of blocks instead of Z coordinates (and save for /mirror z) 2019-12-24 20:35:22 +11:00
UnknownShadow200
42ef62035e Release 1.9.1.6 1.9.1.6 2019-12-24 15:59:14 +11:00