Bug In Python

Assassin

Plugin Developer
Plugin Developer
Apr 9, 2017
190
195
43
25
Iran
Hi
if u try to block crafting of item in Py you will have this bug in your server:

then if u reconnect nothing solved and u need to close game and open it!
the code is this:

Python:
def On_Crafting(self, CraftingEvent):
        if CraftingEvent.ResultItem.name == "everything":
            CraftingEvent.Cancel()
what i must do to fix this problem?
 

ice cold

Active Member
Trusted Member
Member
Oct 24, 2016
606
871
43
Canada
Hi
if u try to block crafting of item in Py you will have this bug in your server:

then if u reconnect nothing solved and u need to close game and open it!
the code is this:

Python:
def On_Crafting(self, CraftingEvent):
        if CraftingEvent.ResultItem.name == "everything":
            CraftingEvent.Cancel()
what i must do to fix this problem?
it isnt really a python bug


this bug occures becaus it cancels the crafting event so when people spam the resource that is getting blocked in a not Fastest Code language

if you make this in C# it wil have 0 bugs
 
  • Informative
Reactions: Assassin