mirror of
https://github.com/danbulant/flying-squid
synced 2026-06-14 12:01:12 +00:00
Small fixes
This commit is contained in:
parent
de59be23ad
commit
fa99c91551
4 changed files with 4 additions and 4 deletions
2
TODO.md
2
TODO.md
|
|
@ -20,11 +20,11 @@ This is a list that will keep the developers and the community organized!
|
|||
- [x] Other dimensions
|
||||
- [x] Block dropping
|
||||
- [x] Entity basics
|
||||
- [x] Plugin System
|
||||
|
||||
### To-do
|
||||
#### Priority
|
||||
- [ ] Inventories (saving the blocks players get)
|
||||
- [ ] Plugin System
|
||||
- [ ] Crafting and Smelting
|
||||
- [ ] Add in cluster functionality
|
||||
|
||||
|
|
|
|||
|
|
@ -723,7 +723,7 @@ Cancelled: Replace block with old block for player
|
|||
#### "attack"
|
||||
|
||||
Emitted when a player attacks an entity
|
||||
- attackdEntity: Entity being attacked
|
||||
- attackedEntity: Entity being attacked
|
||||
- playSound: Play sound (Default: true)
|
||||
- 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)
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ module.exports.player=function(player,serv)
|
|||
position: pos,
|
||||
block: block
|
||||
}, ({position}) => {
|
||||
return startDigmehging(position);
|
||||
return startDigging(position);
|
||||
}, cancelDig);
|
||||
else if(status==2)
|
||||
player.behavior('dug', { // Finish dig survival
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ module.exports.player=function(player,serv) {
|
|||
if (status != 0 || player.gameMode == 1) return;
|
||||
return player.world.getBlockType(reference).then((id) => {
|
||||
if (id != 25) return;
|
||||
cancel();
|
||||
cancel(false);
|
||||
if (!player.world.blockEntityData[reference.toString()]) player.world.blockEntityData[reference.toString()] = {};
|
||||
var data = player.world.blockEntityData[reference.toString()];
|
||||
if (typeof data.note == 'undefined') data.note = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue