@SubscribeEvent(priority = EventPriority.LOWEST)
public void denyCraft(final ToolBuildEvent event) {
if (ExtraUtils.tcon_unstable_material_id <= 0) {
return;
}
final WorldServer world = DimensionManager.getWorld(0);
if (world == null) {
return;
}
if (isToolExpired(event.headStack, world) || isToolExpired(event.handleStack, world) || isToolExpired(event.accessoryStack, world) || isToolExpired(event.extraStack, world)) {
event.headStack = null;
event.handleStack = null;
event.accessoryStack = null;
event.extraStack = null;
}
}
TConEvents.java 文件源码
java
阅读 30
收藏 0
点赞 0
评论 0
项目:ExtraUtilities
作者:
评论列表
文章目录