Fix bucket replacement not loading the bucket model by itself if replacing buckets.

This happens when no other mod that uses the bucket model is present.
Also added a simple method for registering the bucket model, should give
modders an idea on how to use the general model.
This commit is contained in:
Bernhard Bonigl committed 2015-12-29 13:31:35 +01:00
1 parent 7f52bc6547
commit 509cc79112
2 files changed
+25 -10

No files matched your search

@@ -47,15 +47,7 @@ public class DynBucketTest
@Override
void setupModels()
{
ModelLoader.setCustomMeshDefinition(dynBucket, new ItemMeshDefinition()
{
@Override
public ModelResourceLocation getModelLocation(ItemStack stack)
{
return ModelDynBucket.LOCATION;
}
});
ModelBakery.registerItemVariants(dynBucket, new ResourceLocation("forge", "dynbucket"));
ModelLoader.setBucketModelDefinition(dynBucket);
final ModelResourceLocation bottle = new ModelResourceLocation(new ResourceLocation("forge", "dynbottle"), "inventory");
ModelLoader.setCustomMeshDefinition(dynBottle, new ItemMeshDefinition()