mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-22 05:02:39 +00:00
now at around 4700 errors
This commit is contained in:
1 parent
e187d8525b
commit
4228b26a07
28 files changed
+88
-89
No files matched your search
@@ -1,9 +1,8 @@
|
||||
package tconstruct.util;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import tconstruct.library.event.SmelteryEvent;
|
||||
|
||||
import net.minecraftforge.common.FakePlayer;
|
||||
import net.minecraftforge.event.ForgeSubscribe;
|
||||
import net.minecraftforge.common.util.FakePlayer;
|
||||
import tconstruct.achievements.TAchievements;
|
||||
import tconstruct.blocks.logic.ToolForgeLogic;
|
||||
import tconstruct.library.event.ToolCraftedEvent;
|
||||
@@ -11,7 +10,7 @@ import tconstruct.library.tools.*;
|
||||
|
||||
public class TEventHandlerAchievement {
|
||||
|
||||
@ForgeSubscribe
|
||||
@SubscribeEvent
|
||||
public void onToolCrafted(ToolCraftedEvent event){
|
||||
if(event.player != null && !(event.player instanceof FakePlayer)){
|
||||
event.player.addStat(TAchievements.achievements.get("tconstruct.tinkerer"), 1);
|
||||
@@ -26,7 +25,7 @@ public class TEventHandlerAchievement {
|
||||
}
|
||||
}
|
||||
|
||||
@ForgeSubscribe
|
||||
@SubscribeEvent
|
||||
public void onItemPlacedIntoCasting(SmelteryEvent.ItemInsertedIntoCasting event){
|
||||
if(event.player != null && event.item != null){
|
||||
if(event.item.getItem() instanceof ToolCore){
|
||||
|
||||
Reference in new issue
Block a user