Bug Closed · Resolved

[BUG] `/mm spawners copy` has a pointer/data issue

#6421 opened by Unknown 1 year ago

Unknownreported this bug

Copying a spawner and changing its mob type will change the mob type of the first spawner. This can be reproduced 100% of the time for me with the steps below. Restarting resolves the issue.

Assume MobSpawner1 has MobType 1.

My steps: Create your first spawner. /mm spawners copy MobSpawner1 MobSpawner2 /mm spawners set MobSpawner1 mob_type MobType2 /mm mobs kill MobType1

Result MobType2 will spawn at both MobSpawner1 and MobSpawner2.

Restarting fixes the issue. This only happens in runtime.

Spawner

MiningProficiencyMerchant1:
  World: MMO
  X: 155
  Y: 72
  Z: -29
  Yaw: 0.0
  Pitch: 0.0
  Breakable: false
  MobName: MiningProficiencyExpert
  SpawnerGroup: ''
  Radius: 1.0
  RadiusY: 1.0
  UseTimer: true
  MaxMobs: '1'
  MobLevel: '1'
  MobsPerSpawn: 1
  Cooldown: 10
  Warmup: 30
  ActivationRange: 32.0
  ScalingRange: 25.0
  LeashRange: 5.0
  HealOnLeash: true
  ResetThreatOnLeash: true
  CheckForPlayers: true
  ShowFlames: false
  Conditions: []
  SpawnConditions: []
  WarmupTimer: 2

Exact same config for the other spawner, just with a different mob type.

Sign in to join the discussion.