Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix FlansMods#1185 (FlansMods#1212)

Co-authored-by: Compeador <qj6w94g0q@gmail.com>
  • Loading branch information
ken1882 committed May 7, 2020
1 parent ffb6c3e commit 7396e89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/flansmod/common/guns/ItemGun.java
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ public void setBulletItemStack(ItemStack gun, ItemStack bullet, int id)
*/
public static void dropItem(World world, Entity entity, String itemName)
{
if(itemName != null)
if(itemName != null && !world.isRemote)
{
int damage = 0;
if(itemName.contains("."))
Expand Down

0 comments on commit 7396e89

Please sign in to comment.