Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicMobs MythicMobs
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 132
    • Issues 132
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicMobsMythicMobs
  • Issues
  • #98

Closed
Open
Created Sep 21, 2020 by Ticxo@TicxoOwner

Silverfish duplicate itself when infesting blocks

Summary

When a Silverfish type mob has option PreventBlockInfection: true, an error is thrown and the mob duplicate itself.

Steps to reproduce

  1. Make a Silverfish type mob
  2. Set PreventBlockInfection: true
  3. Place on some stone and wait for it to infest the block

Current behavior

When the silverfish is infesting a block, a ClassCastException is thrown and the mob duplicates itself, but the stone block remain disinfected. The mob has the same property as the original mob, and will keep trying to infest the stone block to create more of itself.

Intended correct behavior

The silverfish should not be duplicating itself.

Server log file

https://pastebin.com/SkHUpzF9

Debug log snippet

https://pastebin.com/hreK5Xui

Proposed fixes

Don't cast ActiveMob to LivingEntity lol

Edited Sep 22, 2020 by Ticxo
Assignee
Assign to
4.11.X
Milestone
4.11.X
Assign milestone
Time tracking