Commit Graph
100 Commits
Author SHA1 Message Date
Tiger Wang 166f07029d Fixed binding generation and VS2013 compile 2013-12-08 14:45:24 +00:00
Tiger Wang 9c1b7c8b6e Readded redstone lamp handler 2013-12-08 14:07:32 +00:00
Tiger Wang 1d554677b4 Merge branch 'master' of https://github.com/mc-server/MCServer into fixesnfeatures
Conflicts:
	src/Bindings/Bindings.cpp
	src/Bindings/Bindings.h
	src/Blocks/BlockHandler.cpp
2013-12-08 14:02:45 +00:00
Tiger Wang f64dd786aa Fixed tabcompletion packet, fixes #356 2013-12-08 13:37:10 +00:00
Tiger Wang 0148685d4e Fixed falling block metas, fixes #406 2013-12-08 00:32:02 +00:00
Tiger Wang 838d4d5d1d Bonemeal has particles, fixes #393 2013-12-07 23:45:33 +00:00
Tiger Wang b779d84663 Console trims its commands before executing 'em 2013-12-07 22:35:24 +00:00
Tiger Wang 405f67dac8 Fixed water starting fires 2013-12-07 22:35:01 +00:00
Tiger Wang 16db8533e1 Improved piston animations 2013-12-07 20:29:09 +00:00
Tiger Wang 5bed85aba0 Fixed some new 1.7 client crash bugs
Some technical blocks were removed; trying to render them as items
caused a crash.
2013-12-07 18:03:56 +00:00
Tiger Wang a61082ffee Changed some FastSetBlocks to SetBlock
Should fix some duplication glitches.
2013-12-07 14:55:19 +00:00
Tiger Wang 1932cc38a1 Fixed trapdoors not toggling
The redstone simulator kept on resetting them.
2013-12-07 14:41:58 +00:00
Tiger Wang 347e80bdd8 Added basic ender chests
Note that they just mirror chests now, so no per player inventory.
2013-12-07 00:18:58 +00:00
Tiger Wang 30ead79049 Renamed animation function
Renamed BroadcastPlayerAnimation to BroadcastEntityAnimation. Not just
players can have animations, you know.
2013-12-06 23:47:07 +00:00
Tiger Wang a5dd0e2b88 Fixed bed leave animation 2013-12-06 22:45:55 +00:00
Tiger Wang b028731726 Fixed duplication glitch with QueueSetBlock
If a coordinate was queued, and then the block there was broken, it
would reappear: double items!

Also now just sets meta if previous and current blocktypes matched.
2013-12-06 22:29:15 +00:00
Tiger Wang b115f3d636 Added trapdoor cursor Y detection 2013-12-06 21:31:55 +00:00
Tiger Wang ec226e00ab Puking now uses GetEyeHeight() 2013-12-06 20:41:58 +00:00
Tiger Wang e2a557f46c Added pickup invalid item check
They aren't spawned at all if their itemtype isn't valid; possibly fixes
the client crashing with bad pickups.
2013-12-06 20:39:42 +00:00
Tiger Wang 126577214a Re-implemented redstone duplicate checking 2013-12-06 20:33:48 +00:00
Tiger Wang 289e8cba21 Fixed eating using wrong animation 2013-12-06 20:28:27 +00:00
Tiger Wang 008c515b4b Fixed trapdoors not overriding OnUse 2013-12-06 20:01:52 +00:00
Tiger Wang 6c7de446ae Spawn eggs use IsGameMode()
Possible fix for #316.
2013-12-06 20:00:49 +00:00
Tiger Wang 44d5fd1e87 Tools make a sound when breaking, fixes #266 2013-12-06 19:59:14 +00:00
Tiger Wang 77a7bfb3e5 Cleaned up torch code and added comments 2013-12-06 19:35:10 +00:00
Tiger Wang 73dd2e9bed Removed another export and inline'd stuff 2013-12-06 19:24:45 +00:00
Tiger Wang 0376b847d7 Removed exporting of a torch function 2013-12-06 19:23:27 +00:00
Tiger Wang 57b8b38511 Updated comments for slabs 2013-12-06 19:22:25 +00:00
Tiger Wang ee4d57a076 Fixed pickups spawning for BlockEntities 2013-12-06 19:17:57 +00:00
Tiger Wang 127d021cde Regenerated VS2013 files 2013-12-06 19:15:53 +00:00
Tiger Wang fad43f0c40 Fixed pistons extending
They didn't when a source was in front, but now they do! Yay!
2013-11-30 15:07:21 +00:00
Tiger Wang dc8e8a3ddc Merge branch 'trapdoors' of https://github.com/mc-server/MCServer into trapdoors 2013-11-30 13:52:19 +00:00
Tiger Wang 363db1bdc4 Removed redstone duplicate power checking
There was no need for it, and it introduced some bugs.
2013-11-30 13:52:11 +00:00
Tiger Wang d12106ee97 Improved piston direction checking
Now uses AddFaceDirection, as suggested by xoft.
2013-11-30 13:41:40 +00:00
Tiger Wang 455686e3ad Pistons no longer accept power through front face
This fixes #60.
2013-11-30 12:11:39 +00:00
Tiger Wang ab382ef6b4 Fixed thin snow CanBeAt checking
Now takes into account the possibility that thin snow can be on top of
full thin snow.
2013-11-30 11:45:23 +00:00
Tiger Wang 0e0baa940a Properly fixed snow height, fixes #98 and #264 2013-11-30 00:31:21 +00:00
Tiger Wang 8d88c8f26f Improved redstone speed and fixed a wire bug
The redstone simulator no longer goes through the Powered and
LinkedPowered blocks lists for EVERY item in the chunk data, instead,
only at every tick.
Also, wires powering each other that had the same data value is now
fixed.
2013-11-30 00:30:49 +00:00
Tiger Wang 4741e5e794 Stairs reset meta when dropped, fixes #269
Additionally, they now have walking sounds.
2013-11-29 22:28:59 +00:00
Tiger Wang 1d69c80ad3 Implemented trapdoors, fixes #43 and #105
Also updated redstone simulator to support it
2013-11-29 22:27:08 +00:00
Tiger Wang cee5160be8 Removed unneeded CPP files
Also removed unneeded #include in BlockStems
2013-11-29 22:25:07 +00:00
Tiger Wang 96759637e9 Fixed a bug with TNT waking simulators 2013-11-28 18:24:25 +00:00
Tiger Wang f9e1be0d57 Improved TNT pickup randomisation 2013-11-28 18:22:13 +00:00
Tiger Wang 994e1d7335 Made TNT pickups spawning chance 25% 2013-11-27 22:03:04 +00:00
Tiger Wang a6630d3239 Merged master into redstonefixes 2013-11-27 21:35:13 +00:00
Tiger Wang 2ba4625835 Fixed VS2013 compiling 2013-11-27 21:10:01 +00:00
Tiger Wang b358032fe9 Makefile fix 2013-11-26 23:15:32 +00:00
Tiger Wang e1f3cb1879 ANOTHER compile fix
This one was broken by bear. :P
2013-11-26 22:56:35 +00:00
Tiger Wang 2ef9cf700d Hopefully fixed last of the Linux compile errors 2013-11-26 22:50:33 +00:00
Tiger Wang 3e3e63d946 Compile fix again 2013-11-26 22:45:08 +00:00
Tiger Wang f87bb1619e Fixed Linux compile again 2013-11-26 22:43:22 +00:00
Tiger Wang 2dee812667 Possibly fixed Linux makefile 2013-11-26 22:37:44 +00:00
Tiger Wang 1c526ed52b Fixed tolua++ files 2013-11-26 22:11:40 +00:00
Tiger Wang 83ce4d4792 Fixed spawn point being generally in an ocean 2013-11-26 21:54:40 +00:00
Tiger Wang b628cfb734 Fixed repeaters not powering from wire
This should also fix comparators (in the future).
This also updates XML comments so that they are compatible with Doxygen.
2013-11-26 21:54:07 +00:00
Tiger Wang 56f13f83bb Merge remote-tracking branch 'origin/master' into redstonefixes 2013-11-25 21:45:22 +00:00
Tiger Wang 3466d2cad9 Fixed all outstanding VS compilation issues
Also updated VS2008 files.
2013-11-25 21:32:09 +00:00
Tiger Wang 28b09377f3 Updated VS includes 2013-11-25 18:43:46 +00:00
Tiger Wang 32449f1fca Further attempts to fix compile 2013-11-25 18:29:36 +00:00
Tiger Wang e3db69c4ae Attempt to fix compilation 2013-11-24 18:44:22 +00:00
Tiger Wang 16435995a5 Moved SQLite, LuaExpat, and MD5 to /lib 2013-11-24 17:33:47 +00:00
Tiger Wang a92f475a75 Removed old project files 2013-11-24 17:31:53 +00:00
Tiger Wang 3c2e7f1aad Fixed Visual Studio Files 2013-11-24 17:30:42 +00:00
Tiger Wang f95064a85c Merge remote-tracking branch 'origin/master' into redstonefixes 2013-11-24 14:55:08 +00:00
Tiger Wang f570948d79 Fixed some comments and added debug logging 2013-11-24 14:52:28 +00:00
Tiger Wang a6695564f3 Expanded one-line if statement 2013-11-23 12:10:33 +00:00
Tiger Wang 6a051b7cd8 Properly fixed piston bugs 2013-11-22 23:15:59 +00:00
Tiger Wang e40b384547 Fixed some piston bugs
Due to our QueueSetBlocks, a fast extension then retraction would lead
to invalid game states. This hopefully fixes it. Also reduced delay
speed.
2013-11-22 22:00:37 +00:00
Tiger Wang c7d55d8bbd Fixed spawning pickups with piston arms 2013-11-22 21:57:06 +00:00
Tiger Wang 314884d9bb Multiple enhancements [SEE DESC]
+ Added lever location checking
* Fixed button location checking
* Fixed button pressing/unpressing
* Fixed repeaters updating
* Minor enhancements
2013-11-21 22:44:18 +00:00
Tiger Wang d48ce1d10f Multiple bugfixes [SEE DESC]
* Fixed compilation on VC2013
* Fixed redstone self powering - still one more scenario to go
+ Redstone now powers block beneath
* Improved code: functionized stuff, and reduced unneeded GetBlockMetas;
also utilised direct chunk access, as recommended by xoft
+ Added torches powering blocks above it
* Fixed repeaters getting power when they shouldn't
- Stopped wires getting power from another wire through a block, which
could lead to wire-powering loops (vanilla behaviour)
2013-11-20 22:54:28 +00:00
Tiger Wang 78f45e0bd1 Fixed piston sound effect (when unable to extend) 2013-11-19 20:40:07 +00:00
Tiger Wang f06d686f63 Possible compile fix
Also removed unneeded variables.
2013-11-19 07:49:02 +00:00
Tiger Wang bc1e236d54 Redstone Megacommit [SEE DESC]
+ Updated BlockID - look for yourself
* Improved button, repeater, lever, and comparator code ->
simplification and splitting of some stuff from the redstone simulator
file
* Fixed buttons not breaking when in an invalid game state
* Fixed QueueSetBlock -> improved (AGAIN) piston code
+ Rewrote redstone simulator

Fixes: #57, #58, #205, and part of #131.
Fixes FS issues: 281, 116, and 102
2013-11-18 22:30:34 +00:00
Tiger Wang 6ff6929ca6 General fixes [SEE DESC]
* Fixed faulty block face enumeration and functions
+ Added fireworks and exp bottle spawning
* Fixed arrows again
2013-11-16 20:58:17 +00:00
Tiger Wang 7a0d2033b6 Switchified If, ElseIf statement
Also updated comments
2013-11-15 22:47:57 +00:00
Tiger Wang 15c330664a Fixed arrow bugs
* Fixed arrows hitting blocks wrong
2013-11-14 22:39:14 +00:00
Tiger Wang 347162a82f Bundled fixes [SEE DESC]
* BoundingBox now returns FACE_NONE
+ Arrows can be picked up
* Arrows dug up resume physics simulations
* Added sound effects for bows, lava to stone, and arrows
* Fixed SoundParticleEffect on <1.7 protocols
2013-11-12 21:43:20 +00:00
Tiger Wang f713780db3 Bundled fixes [SEE DESC]
* Fixed compiler warning in Monster.cpp
* Future proofed particle effects
* Improved pickups, made less jittery
2013-11-10 22:20:25 +00:00
Tiger Wang 71abbb2f56 Bundled fixes [SEE DESC]
* Fixed pickups spawning in an incorrect position from a JukeBox
* Pickups make a popping sound in Prtcl1.7
* Arrows make a *what sort of sound does an arrow make anyway‽* when
hitting a block, and a popping sound when fired
* Mobs again have metadata
* Fixed Prtcl1.7 not using valid JSON to kick a client
* Minecarts and arrows again have metadata
2013-11-10 20:48:12 +00:00
Tiger Wang 41451100c1 Added hardcore client effect
Also fixed multiple world comments issue.
2013-11-07 22:33:46 +00:00
Tiger Wang 21d835b594 Fix for entity spawning in general 2013-11-07 20:58:47 +00:00
Tiger Wang 4722a90a0b Possible fix for 1.7 pickup spawning 2013-11-07 18:49:48 +00:00
Tiger Wang a263dc8e83 Implemented suggestions
- Reverted changes to WebAdmin.cpp IPv6 ports and Server.cpp server
description
+ Added default value explicitly for HardCore value
* Split PluginManager plugin defaults write to new function
- Removed a commented block from BlockTorch and...
+ Added g_BlockIsTorchPlaceable to Defines.h
2013-11-05 21:15:39 +00:00
Tiger Wang 0c2c803a16 Removed settings/webadmin.example.ini files
Additionally, added some default plugins to autogeneration. Also moved
nbt examples to docs/NBT Examples.
2013-11-04 22:06:23 +00:00
Tiger Wang e832736e0b Autogeneration of settings.ini and webadmin.ini
Fixes issue #75
2013-11-04 21:51:24 +00:00
Tiger Wang 5bd9eb6a1f Flipped some variables in Portals
To make them work on the X axis.
2013-11-02 19:04:38 +00:00
Tiger Wang f38375a2ec Fixed bow damage in creative
Also reverted indenting change
2013-11-02 16:01:40 +00:00
Tiger Wang 96cd7d65a3 Fixed dropspensing speed and position 2013-11-02 14:09:07 +00:00
Tiger Wang 77b3db7e25 Multiple fixes
* Fixed #282
* Fixed bow not taking damage
* Enhanced Player.cpp code
2013-11-02 14:08:00 +00:00
Tiger Wang b731dd0635 Split border finder into separate function 2013-11-02 13:50:30 +00:00
Tiger Wang 585f01c3f6 Implement suggestions
- Removed unneeded parameter
* Changed 0 -  1 to -1
2013-11-02 12:29:26 +00:00
Tiger Wang 72ec10f26d Readded BlockPortal.h (portals) 2013-11-02 00:50:03 +00:00
Tiger Wang 7913a2dcdb Fixed compile error (portals)
WITH A FULL REFORK
2013-11-02 00:44:09 +00:00
Tiger Wang 4d2c810c64 Pickups now have collection delay when vomited
Implements FS#394.
2013-10-24 00:30:20 +01:00
Tiger Wang 442c428f5b TNT Spawns Pickups
Fixes FS#397.
2013-10-23 23:40:59 +01:00
Tiger Wang cb9ccb36ac Merge remote-tracking branch 'upstream/master' 2013-10-15 21:14:47 +01:00
Tiger Wang 9faf4ef178 Merge submodule changes 2013-10-13 17:36:57 +01:00
Tiger Wang d8d2f35e9d Eight round of fixes
* Changed IsA() to *long if statement*
- Removed deprecated values in Entity.h - to blazes with the plugins!
* Renamed villager type enumerations to be LESS SHOUTY and more vt-y
+ Use vtMax for World.cpp testificate spawning
2013-10-13 12:47:55 +01:00
Tiger Wang d0acb37aed Seventh round of fixes
* Fixed arrows not critical-effecting because they were in MOBS! (derp)
* Used cMonster::mtXX as per xoft's suggestions
2013-10-12 23:05:15 +01:00