mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 13:16:45 +01:00
oopsy
This commit is contained in:
parent
20c69b63af
commit
f5294387b0
@ -17,6 +17,7 @@ Version 2.1.148
|
||||
Nether Portal spawned mobs are tracked persistently and are no longer forgotten about after a restart
|
||||
Endermen who target endermite are tracked persistently and are no longer forgotten about after a restart
|
||||
COTW spawned mobs are tracked persistently and are no longer forgotten about after a restart
|
||||
Player bred mobs are tracked persistently and are no longer forgotten about after a restart
|
||||
|
||||
|
||||
NOTES:
|
||||
|
@ -2,6 +2,7 @@ package com.gmail.nossr50.util.compat.layers.persistentdata;
|
||||
|
||||
import com.gmail.nossr50.api.exceptions.IncompleteNamespacedKeyRegister;
|
||||
import com.gmail.nossr50.mcMMO;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.NamespacedKey;
|
||||
import org.bukkit.block.Furnace;
|
||||
import org.bukkit.enchantments.Enchantment;
|
||||
@ -37,7 +38,6 @@ public class SpigotPersistentDataLayer_1_14 extends AbstractPersistentDataLayer
|
||||
private void initMobFlagKeyMap() throws IncompleteNamespacedKeyRegister {
|
||||
for(MobMetaFlagType mobMetaFlagType : MobMetaFlagType.values()) {
|
||||
switch(mobMetaFlagType) {
|
||||
|
||||
case MOB_SPAWNER_MOB:
|
||||
mobFlagKeyMap.put(mobMetaFlagType, NSK_MOB_SPAWNER_MOB);
|
||||
break;
|
||||
@ -67,7 +67,7 @@ public class SpigotPersistentDataLayer_1_14 extends AbstractPersistentDataLayer
|
||||
|
||||
@Override
|
||||
public boolean hasMobFlag(@NotNull MobMetaFlagType flag, @NotNull LivingEntity livingEntity) {
|
||||
return livingEntity.getPersistentDataContainer().has(mobFlagKeyMap.get(flag), PersistentDataType.SHORT);
|
||||
return livingEntity.getPersistentDataContainer().has(mobFlagKeyMap.get(flag), PersistentDataType.BYTE);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -553,4 +553,3 @@ Experience_Values:
|
||||
Zombified_Piglin: 3.0
|
||||
Strider: 1.2
|
||||
Zoglin: 2.5
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user