mirror of
https://github.com/GTNewHorizons/MagicBees.git
synced 2026-11-12 08:17:29 +00:00
Fixed issue #23 Infernal Hive not spawning (+1 squashed commits)
Squashed commits: [ca7be80] probably fix #21 #20 #17.
This commit is contained in:
1 parent
0c5f27e192
commit
2f5cbb7d3c
2 files changed
+10
-2
No files matched your search
@@ -2,6 +2,7 @@ package magicbees.storage;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
@@ -35,7 +36,7 @@ public class BackpackDefinition implements IBackpackDefinition
|
||||
|
||||
@Override
|
||||
public String getName(ItemStack backpack) {
|
||||
return backpack.getDisplayName();
|
||||
return name;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -78,4 +79,11 @@ public class BackpackDefinition implements IBackpackDefinition
|
||||
return flag;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addValidItems(List<ItemStack> validItems) {
|
||||
for(ItemStack s : validItems)
|
||||
addValidItem(s);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user