Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public void handleServerSide (EntityPlayer player)
- {
- World world = player.worldObj;
- TileEntity te = world.getTileEntity(this.x, this.y, this.z);
- if ((te instanceof StencilTableLogic))
- {
- StencilTableLogic logic = (StencilTableLogic)te;
- if ((player.openContainer != null) && ((player.openContainer instanceof PatternShaperContainer)))
- {
- PatternShaperContainer container = (PatternShaperContainer)player.openContainer;
- if (container.logic == logic) {
- if (this.contents == null)
- {
- logic.setSelectedPattern(null);
- }
- else
- {
- ItemStack stackBlank = logic.getStackInSlot(0);
- if ((stackBlank != null) && (stackBlank.stackSize > 0) && (StencilBuilder.isBlank(stackBlank)))
- {
- boolean warning = true;
- for (ItemStack stack : StencilBuilder.instance.stencils.values()) {
- if ((stack != null) && (this.contents.isItemEqual(stack)))
- {
- this.contents = stack.copy();
- warning = false;
- break;
- }
- }
- if (warning)
- {
- TConstruct.logger.warn(player.getCommandSenderName() + " - этот пидор пытался юзануть дыру");
- TConstruct.logger.warn(player.getCommandSenderName() + " выдавал конкретно " + this.contents.getItem().getUnlocalizedName() + "");
- }
- else
- {
- logic.setSelectedPattern(this.contents);
- }
- }
- else
- {
- TConstruct.logger.warn(player.getCommandSenderName() + " - этот пидор пытался юзануть дыру");
- TConstruct.logger.warn(player.getCommandSenderName() + " выдавал конкретно " + this.contents.getItem().getUnlocalizedName() + "");
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement