mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-07-01 12:36:41 +00:00
More progress towards 1.13
This commit is contained in:
@ -56,17 +56,11 @@ public class ItemFun extends FreedomService
|
||||
|
||||
switch (event.getMaterial())
|
||||
{
|
||||
case RAW_FISH:
|
||||
case TROPICAL_FISH:
|
||||
{
|
||||
final int RADIUS_HIT = 5;
|
||||
final int STRENGTH = 4;
|
||||
|
||||
// Clownfish
|
||||
if (DepreciationAggregator.getData_MaterialData(event.getItem().getData()) != 2)
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
if (!plugin.al.isSeniorAdmin(player))
|
||||
{
|
||||
final StringBuilder msg = new StringBuilder();
|
||||
@ -77,7 +71,7 @@ public class ItemFun extends FreedomService
|
||||
}
|
||||
player.sendMessage(msg.toString());
|
||||
|
||||
player.getEquipment().getItemInMainHand().setType(Material.POTATO_ITEM);
|
||||
player.getEquipment().getItemInMainHand().setType(Material.POTATO);
|
||||
break;
|
||||
}
|
||||
|
||||
@ -126,7 +120,7 @@ public class ItemFun extends FreedomService
|
||||
break;
|
||||
}
|
||||
|
||||
case CARROT_ITEM:
|
||||
case CARROT:
|
||||
{
|
||||
if (!ConfigEntry.ALLOW_EXPLOSIONS.getBoolean())
|
||||
{
|
||||
@ -214,7 +208,7 @@ public class ItemFun extends FreedomService
|
||||
break;
|
||||
}
|
||||
|
||||
case SULPHUR:
|
||||
case GUNPOWDER:
|
||||
{
|
||||
if (!fPlayer.isMP44Armed())
|
||||
{
|
||||
|
Reference in New Issue
Block a user