Commit Graph

29 Commits (f3be63d8746a483072c9153e891fdf748ef829a8)

Author SHA1 Message Date
Lars Müller 6623dec567
Redo player_api (#2745) 2022-01-17 21:49:28 +01:00
ElCeejo 8158926862
Check for attachments before attaching player to bed (#2862) 2021-05-08 11:30:57 +02:00
Lars Müller 624dafc12b
Fix crash on exit of bed formspec if not sleeping (#2826) 2021-02-11 12:30:37 +01:00
Lars Müller 6a9cbcad82
Beds: Preserve player physics (#2789) 2021-02-01 23:00:05 +01:00
SmallJoker 331bbae058
Fix deprecated get_player_velocity and set_physics_override calls (#2770) 2020-11-04 21:42:35 +01:00
An0n3m0us 268f869e67
beds: Various bug fixes (#2566)
· Fixes players sleeping in an occupied bed (Wuzzys code)
· Fixes 'sleepwalking' by checking players velocity (Wuzzys code)
· Fixes sleeping player flying off the bed when damaged and flying far away from the bed after death
· Fixes sleeping player being immobilized and bed undiggable after death
2020-09-02 18:32:06 +02:00
David Leal 81c5b6b399
beds: Use `player_api` functions instead of `default` (#2654) 2020-04-23 22:19:58 +02:00
Paramat 9bf64b61c2
Fix simple bed height, make player lay down just above it, not inside it 2020-02-08 03:11:44 +00:00
sfan5 b4c7522248
Fix more translation strings (#2487) 2019-09-18 20:38:27 +02:00
Paramat e3cd961a15
Fix beds being undiggable after laying down 2019-03-23 23:12:44 +00:00
sofar b853c8a509 Beds: Properly count players in beds
This is a rebased and slightly rewritten version of #2125.
2019-03-10 01:43:49 +00:00
SmallJoker 2ff9058a62 Beds: Fix formspec size, no prepend 2019-01-26 14:00:01 +01:00
beyondlimits 876a9ca5d2 Beds: Fix input checking for "Force night skip" 2018-07-03 19:50:16 +01:00
SmallJoker 255031fc91 Replace deprecated function calls 2018-07-01 20:44:03 +01:00
bell07 5692c15b4d Disallow digging a bed if in use
Use a new table beds.bed_position to check if a bed is in use.
2018-06-19 22:07:01 +01:00
paramat 809e5933c4 Beds: Strip colour bits from param2 in 'get look yaw'
Based on code by github user 'hdak1945git'.
Fixes a crash when 'colorfacedir' param2 is used for beds.
2017-09-28 20:49:34 +01:00
paramat eec1c5a03b Settings: Use new settings object 2017-05-24 07:18:26 +01:00
Auke Kok 75caa9167c Fix whitespace errors to silence luacheck.
Currently all minetest_game PR's are failing travis since the
upstream luacheck now also warns about whitespace issues, and
there are a few of those in the code. This fixes all of them
so we can yet again rely on luacheck.
2016-11-19 19:39:51 -08:00
SmallJoker ea49eb3f3d Beds, boats: Replace deprecated get_look_yaw/set_look_yaw 2016-07-27 21:39:22 +01:00
adrido d89bb69a22 Beds: Only register respawn callbacks if respawn is enabled 2016-07-15 22:00:57 +01:00
Tim 4473627de0 Remove unused and clean up missused variable-value assignments.
* Unused variables
* Unused values (assigned to variables, but overwritten before use)
* Defining already defined variables instead of reassigning to them.
2016-07-15 21:58:49 +01:00
tenplus1 d7a7456007 Beds: Save respawn position when entering bed, only read bed spawns once
No longer require night to be skipped for resawn position to be saved
Remove constant beds.read_spawns() calls when a player joins as this
is only required once
2016-07-13 14:45:30 +01:00
paramat 45bc0b245f Beds: Fix code style issues 2016-03-09 02:44:32 +00:00
Marcin b292975fbc Use PI variable rather than unclear constant 2015-10-20 00:26:19 +01:00
LeMagnesium 279b85fc45 Add option to disable bed's night skip - Solve second point of #512 by adding a setting, `enable_bed_night_skip` , with default value of `true`. 2015-09-29 01:25:40 +01:00
Novatux 3669ca0a83 Make beds not skip night if nobody is online 2015-05-14 14:41:26 +02:00
BlockMen 41837e6193 Fix beds respawn settings check 2015-03-06 19:29:16 +01:00
BlockMen 2a6050e552 Add option to disable bed respawn, better recipe for fancy bed 2015-03-06 10:46:05 +01:00
BlockMen edb02e9d33 Add beds 2015-02-24 20:59:04 +01:00