Fixed a minor bug with the Minecart Dictionary.
This commit is contained in:
parent
7db6897fa3
commit
3847292ef7
|
@ -780,13 +780,9 @@ public class MinecraftForge
|
||||||
* @return An ItemStack that can be used to place the cart.
|
* @return An ItemStack that can be used to place the cart.
|
||||||
*/
|
*/
|
||||||
public static ItemStack getItemForCart(EntityMinecart cart)
|
public static ItemStack getItemForCart(EntityMinecart cart)
|
||||||
{
|
|
||||||
if (cart.getClass() == EntityMinecart.class)
|
|
||||||
{
|
{
|
||||||
return getItemForCart(cart.getClass(), cart.getMinecartType());
|
return getItemForCart(cart.getClass(), cart.getMinecartType());
|
||||||
}
|
}
|
||||||
return getItemForCart(cart.getClass(), 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The function will return the cart class for a given item.
|
* The function will return the cart class for a given item.
|
||||||
|
|
Loading…
Reference in New Issue