mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +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
|
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
|
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
|
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:
|
NOTES:
|
||||||
|
@ -2,6 +2,7 @@ package com.gmail.nossr50.util.compat.layers.persistentdata;
|
|||||||
|
|
||||||
import com.gmail.nossr50.api.exceptions.IncompleteNamespacedKeyRegister;
|
import com.gmail.nossr50.api.exceptions.IncompleteNamespacedKeyRegister;
|
||||||
import com.gmail.nossr50.mcMMO;
|
import com.gmail.nossr50.mcMMO;
|
||||||
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.NamespacedKey;
|
import org.bukkit.NamespacedKey;
|
||||||
import org.bukkit.block.Furnace;
|
import org.bukkit.block.Furnace;
|
||||||
import org.bukkit.enchantments.Enchantment;
|
import org.bukkit.enchantments.Enchantment;
|
||||||
@ -37,7 +38,6 @@ public class SpigotPersistentDataLayer_1_14 extends AbstractPersistentDataLayer
|
|||||||
private void initMobFlagKeyMap() throws IncompleteNamespacedKeyRegister {
|
private void initMobFlagKeyMap() throws IncompleteNamespacedKeyRegister {
|
||||||
for(MobMetaFlagType mobMetaFlagType : MobMetaFlagType.values()) {
|
for(MobMetaFlagType mobMetaFlagType : MobMetaFlagType.values()) {
|
||||||
switch(mobMetaFlagType) {
|
switch(mobMetaFlagType) {
|
||||||
|
|
||||||
case MOB_SPAWNER_MOB:
|
case MOB_SPAWNER_MOB:
|
||||||
mobFlagKeyMap.put(mobMetaFlagType, NSK_MOB_SPAWNER_MOB);
|
mobFlagKeyMap.put(mobMetaFlagType, NSK_MOB_SPAWNER_MOB);
|
||||||
break;
|
break;
|
||||||
@ -67,7 +67,7 @@ public class SpigotPersistentDataLayer_1_14 extends AbstractPersistentDataLayer
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean hasMobFlag(@NotNull MobMetaFlagType flag, @NotNull LivingEntity livingEntity) {
|
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
|
@Override
|
||||||
|
@ -553,4 +553,3 @@ Experience_Values:
|
|||||||
Zombified_Piglin: 3.0
|
Zombified_Piglin: 3.0
|
||||||
Strider: 1.2
|
Strider: 1.2
|
||||||
Zoglin: 2.5
|
Zoglin: 2.5
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user