Fix crash with ghast achievement fireball_redir_serv #4179
No reviewers
Labels
No Label
#P1 CRITICAL
#P2: HIGH
#P3: elevated
#P4 priority: medium
#P6: low
#Review
annoying
API
bug
code quality
combat
commands
compatibility
configurability
contribution inside
controls
core feature
creative mode
delayed for engine release
documentation
duplicate
enhancement
environment
gameplay
graphics
ground content conflict
GUI/HUD
help wanted
incomplete feature
invalid / won't fix
items
looking for contributor
mapgen
meta
mineclone2+
Minecraft >= 1.13
Minecraft >= 1.17
missing feature
mobile
mobs
mod support
model needed
multiplayer
Needs adoption
needs discussion
needs engine change
needs more information
needs research
nodes
non-Minecraft feature
non-mob entities
performance
player
possible close
redstone
release notes
schematics
Skyblock
sounds
Testing / Retest
tools
translation
unconfirmed
mcl5
mcla
Media missing
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: VoxeLibre/VoxeLibre#4179
Loading…
Reference in New Issue
No description provided.
Delete Branch "Araca/MineClone2:master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
My server crash a lot since I updated yesterday into master branch.
Logs
self._puncher is
nil
My guess on "Why", is that a ghast was spawn before I updated the server and as a consequence, it doesn't have the new attribute
_puncher
This is not guaranteed to work because of operator associativity (and is to or like × is to +). Also now that I looked at the code again, it seems there may be more problems than just this...
@ -133,3 +133,3 @@
mcl_mobs.mob_class.boom(self,self.object:get_pos(), 1, true)
local ent = mob:get_luaentity()
if not ent or ent.health <= 0 then
if not ent or ent.health <= 0 and self._puncher then
Damned you are right, I was to fast.
This should work :
if (not ent or ent.health <= 0) and self._puncher then
82f37daef2
toeb8b5cc5da
eb8b5cc5da
toc791622d60
No issues found, pretty straight-forward fix.
Fix crash with ghast achievement fireball_redir_servto Fix crash with ghast achievement fireball_redir_serv