ConstructionWand/src/main/java/thetadev/constructionwand/basics/CommonEvents.java
Theta-Dev 14fb5689d1 Update 1.2:
Added RecipeGenerator
Fixed placing blocks facing player
2020-08-26 01:04:53 +02:00

18 lines
618 B
Java

package thetadev.constructionwand.basics;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraftforge.event.entity.player.PlayerEvent;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.common.Mod;
import thetadev.constructionwand.ConstructionWand;
@Mod.EventBusSubscriber(modid = ConstructionWand.MODID)
public class CommonEvents
{
@SubscribeEvent
public static void logOut(PlayerEvent.PlayerLoggedOutEvent e) {
PlayerEntity player = e.getPlayer();
if(player.getEntityWorld().isRemote) return;
ConstructionWand.instance.jobHistory.removePlayer(player);
}
}