Small fixes

This commit is contained in:
DemiPixel 2015-11-23 09:25:59 -08:00
parent de59be23ad
commit fa99c91551
4 changed files with 4 additions and 4 deletions

View file

@ -20,11 +20,11 @@ This is a list that will keep the developers and the community organized!
- [x] Other dimensions - [x] Other dimensions
- [x] Block dropping - [x] Block dropping
- [x] Entity basics - [x] Entity basics
- [x] Plugin System
### To-do ### To-do
#### Priority #### Priority
- [ ] Inventories (saving the blocks players get) - [ ] Inventories (saving the blocks players get)
- [ ] Plugin System
- [ ] Crafting and Smelting - [ ] Crafting and Smelting
- [ ] Add in cluster functionality - [ ] Add in cluster functionality

View file

@ -723,7 +723,7 @@ Cancelled: Replace block with old block for player
#### "attack" #### "attack"
Emitted when a player attacks an entity Emitted when a player attacks an entity
- attackdEntity: Entity being attacked - attackedEntity: Entity being attacked
- playSound: Play sound (Default: true) - playSound: Play sound (Default: true)
- sound: Sound to play (default is game.player.hurt) - sound: Sound to play (default is game.player.hurt)
- damage: Damage to deal (default is based off player's weapon, player's potions, attackEntity's potions, and attackedEntity armor) - damage: Damage to deal (default is based off player's weapon, player's potions, attackEntity's potions, and attackedEntity armor)

View file

@ -18,7 +18,7 @@ module.exports.player=function(player,serv)
position: pos, position: pos,
block: block block: block
}, ({position}) => { }, ({position}) => {
return startDigmehging(position); return startDigging(position);
}, cancelDig); }, cancelDig);
else if(status==2) else if(status==2)
player.behavior('dug', { // Finish dig survival player.behavior('dug', { // Finish dig survival

View file

@ -57,7 +57,7 @@ module.exports.player=function(player,serv) {
if (status != 0 || player.gameMode == 1) return; if (status != 0 || player.gameMode == 1) return;
return player.world.getBlockType(reference).then((id) => { return player.world.getBlockType(reference).then((id) => {
if (id != 25) return; if (id != 25) return;
cancel(); cancel(false);
if (!player.world.blockEntityData[reference.toString()]) player.world.blockEntityData[reference.toString()] = {}; if (!player.world.blockEntityData[reference.toString()]) player.world.blockEntityData[reference.toString()] = {};
var data = player.world.blockEntityData[reference.toString()]; var data = player.world.blockEntityData[reference.toString()];
if (typeof data.note == 'undefined') data.note = 0; if (typeof data.note == 'undefined') data.note = 0;